Disable PostCSS deprecation warning
See original GitHub issueDescribe the bug Starting Storybook 6.2+ will trigger a deprecation warning, which will make the console output look quite noisy. The warning is about deprecating the implicit PostCSS loader, which is guess is fine to show… if it’s actually being used. I’m not using any CSS in our project, and so I don’t want such a warning to clutter the console output. My OCD wants to do away with warnings 😀, but this one seems to be hardcoded into Storybook.
In the source I can see that it’s always generating that warning for everyone. Except if you explicitly add addon-postcss.
This seems backwards to me. Why should I add an addon that I don’t need, in order to hide a warning about its functionality that I wasn’t using in the first place??
To Reproduce Steps to reproduce the behavior:
- Make sure not to have any CSS in the project
- Make sure not to accidentally install postcss-addon
- Start Storybook 6.2
- Watch the console.
Expected behavior If not using PostCSS: don’t bother the console with it. If using PostCSS: do warn about installing the addon.
Screenshots

System
Please paste the results of npx sb@next info here.
Environment Info:
System:
OS: Windows 10 10.0.19042
CPU: (12) x64 Intel(R) Core(TM) i9-8950HK CPU @ 2.90GHz
Binaries:
Node: 14.16.0 - C:\Program Files\nodejs\node.EXE
npm: 6.14.11 - C:\Program Files\nodejs\npm.CMD
Browsers:
Chrome: 89.0.4389.114
Edge: Spartan (44.19041.423.0), Chromium (89.0.774.63)
npmPackages:
@storybook/addon-docs: 6.2.1 => 6.2.1
@storybook/addon-links: 6.2.1 => 6.2.1
@storybook/addons: 6.2.1 => 6.2.1
@storybook/react: 6.2.1 => 6.2.1
┆Issue is synchronized with this Asana task by Unito
Issue Analytics
- State:
- Created 2 years ago
- Comments:8 (4 by maintainers)

Top Related StackOverflow Question
If you dont use Postcss you can paste this in your
.storybook/main.jsAs suggested in the documentation: https://github.com/storybookjs/storybook/blob/next/MIGRATION.md#deprecated-implicit-postcss-loader
Crikey!! I just released https://github.com/storybookjs/storybook/releases/tag/v6.2.3 containing PR #14478 that references this issue. Upgrade today to the
@latestNPM tag to try it out!Closing this issue. Please re-open if you think there’s still more to do.