Anyways, for anyone that is having an issue with your postcss-import issue or any PostCSS 8 compatibility issue that would look like this on the error:
At the time of writing this (Which is March 14, 2021), Here's what you need to do:
npx sb@next init --type svelte instead of npx sb init --svelte
This is because the StoryBook developer has updated the dependency issue in their pre-release branch.
It's going to ask you to install sb@next, press [ Enter ]
Hello there, Great article!
Anyways, for anyone that is having an issue with your
postcss-import
issue or any PostCSS 8 compatibility issue that would look like this on the error:At the time of writing this (Which is March 14, 2021), Here's what you need to do:
npx sb@next init --type svelte
instead ofnpx sb init --svelte
This is because the StoryBook developer has updated the dependency issue in their pre-release branch.sb@next
, press [ Enter ]Here's a GitHub issue for this problem:
github.com/storybookjs/storybook/i...
To future proof this for StoryBook 7:
npm i -D @storybook/addon-postcss
oryarn install -D @storybook/addon-postcss
@storybook/addon-postcss
inside the main.js.