-
-
Notifications
You must be signed in to change notification settings - Fork 9.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
5.3.x Failed to build the preview with sass #9462
Comments
@vinceumo @ndelangen Any idea what's going on here? Is it due to an upgrade to |
I'm seeing the same thing. Downgrading to |
Things also seem fine with |
I've seen this error too at some point when upgrading that exact same package. downgrading fixed it too. |
Downgrading from 0.9.0 to 0.7.0 did not resolve the issue for me. I'm seeing the exact same error mentioned in the original post still. |
I believe the current version specified is 0.8.0. For me, both an upgrade to 0.9.0 and a downgrade to 0.7.0 seemed to fix the issue. |
How did you downgrade? This package isn't in my list of dependencies. |
I can solve the
Full errorWARN ./components/paragraph/paragraph.stories.js 25:29 WARN Module parse failed: Unexpected token (25:29) WARN You may need an appropriate loader to handle this file type, currently no loaders are configured to process this file. See https://webpack.js.org/concepts#loaders WARN | WARN | storiesOf('Paragraph', module) WARN > .addDecorator((storyFn) => {storyFn()}) |
@jcousins-ynap In my case, I'm using yarn, so I used the resolutions feature. This allows you to override the version of a nested dependency. Here is the relevant part of my |
I fixed it by adding
|
I was also having this issue. Downgrading |
What seemed to fix it for me was adding the following to the plugin section in a custom
It seems that the plugin declaration is missing in the default webpack config. |
Hmm, that's likely because: storybook/app/react/src/server/cra-config.ts Line 193 in 89930ce
|
@KyorCode's suggestion works in combination with downgrading |
Yippee!! I just released https://github.com/storybookjs/storybook/releases/tag/v6.0.0-alpha.2 containing PR #9652 that references this issue. Upgrade today to try it out! You can find this prerelease on the Closing this issue. Please re-open if you think there's still more to do. |
Olé!! I just released https://github.com/storybookjs/storybook/releases/tag/v5.3.10 containing PR #9652 that references this issue. Upgrade today to try it out! |
@shilman Getting a new error now with the latest version of storybook when trying to build:
|
@ConnorDY did you try removing node_modules (& possibly lockfile) and reinstalling? |
@shilman I had previously nuked my node_modules folder but it looked like deleting my |
Hi,
I have some issue with the latest version of Storybook 5.3.x, I'm upgrading from 5.2.8 to 5.3.3 (Same issue on 5.3.1).
Describe the bug
If I run
yarn run storybook
I get no issue Storybook start.When I run
yarn run build-storybook
I get the following error:Full error
The error seems related to this one webpack-contrib/mini-css-extract-plugin#73
To Reproduce
yarn
yarn run storybook
(Project should run normally)yarn run build-storybook
(Project should Failed)I'm on macOS node v12.13.0
I tried as well to use the new manager/preview/main js files and I get the same error.
Thanks a lot for your help
The text was updated successfully, but these errors were encountered: