-
-
Notifications
You must be signed in to change notification settings - Fork 9.3k
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
Error importing scss file #708
Comments
Hi @maxlibin -- have you seen this documentation: https://getstorybook.io/docs/react-storybook/configurations/custom-webpack-config It sounds like you need to apply the first part of your config to storybook's config, in a similar way to the "Simple Mode" example. You could extract it to a common JS file to do so. |
@tmeasday I have this webpack.config.js in .storybook |
@maxlibin -- I tried to reproduce the problem here: https://github.com/tmeasday/storybook-708, but it seems to be working. Note this is an app created with Any ideas about what's different? Maybe you could fork the above and try and reproduce there? |
I was also seeing issues with the storybook 2->3 upgrade. We use scss and cssmodules (without extract text plugin) and do not use The fix was to add the css/scss loaders to the exported
Previously, we had the older (but still valid) |
@maxlibin did you ever sort it out? I might close this issue as @gthomas-appfolio's instructions are hopefully the solution for anyone else finding this, but we can reopen it if you haven't been able to solve the problem. |
This issue has been fixed in |
I had the same issue and i fix it by adding scss loader to .storybook>webpack.config.js |
|
Thanks @nataliepan , I tried almost all methods through research online, only your answer is suitable for me! |
need help with "You may need an appropriate loader to handle this file type."
in compontent file:
import "../src/components/Header.scss";
here is my webpack config:
The text was updated successfully, but these errors were encountered: