-
-
Notifications
You must be signed in to change notification settings - Fork 9.4k
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
SassError on customized webpack config #11052
Comments
I have a same problem as you. It's solved now.thanks |
Hi everyone! Seems like there hasn't been much going on in this issue lately. If there are still questions, comments, or bugs, please feel free to continue the discussion. Unfortunately, we don't have time to get to every issue. We are always open to contributions so please send us a pull request if you would like to help. Inactive issues will be closed after 30 days. Thanks! |
Hey there, it's me again! I am going close this issue to help our maintainers focus on the current development roadmap instead. If the issue mentioned is still a concern, please open a new ticket and mention this old one. Cheers and thanks for using Storybook! |
@nirus Getting a WP error on your site. Could you post your solution here? I'm having this issue as well. |
@bswank .. Apologies. Site is restored. You can check it it now! |
@nirus I may be misunderstanding your solution, but it's not doing what I think it's supposed to for me. I have set the sass-resources-loader resources to include my scss file with my mixins and global variables:
But these mixins and variables still aren't accessible in the scss modules used in my components. Been trying a lot of different variations, but unfortunately no luck. |
Did anyone find a workaround for this? |
Did anyone find a workaround for this? :/ |
Describe the bug
SassError - customized webpack config
To Reproduce
Github sample project for the issue -> here
** Clone the above project or follow below steps to reproduce the issue
Read the error logs below for the output
1st Method
Steps to reproduce the behavior:
Code snippets -
main.js
Error Log for above config:
2nd Solution partially works now:
Steps to reproduce the behavior:
style-loader
withMiniCssExtractPlugin
.Code snippets -
main.js
Outcome:
npm run storybook
- Works perfect now solved!npm run build-storybook
- now ERROR! building the storybook staticError Log for above config:
Expected behavior
Should work as expected
Additional context
Project made with CRA - React App
Suspicion
Below defects helps to understand:
#webpack-contrib/mini-css-extract-plugin#126 (comment)
System:
Please paste the results of
npx -p @storybook/cli@next sb info
here.System:
OS: macOS 10.15.5
CPU: (4) x64 Intel(R) Core(TM) i5-7360U CPU @ 2.30GHz
Binaries:
Node: 12.13.0 - /usr/local/bin/node
npm: 6.14.2 - /usr/local/bin/npm
Browsers:
Chrome: 83.0.4103.97
Firefox: 76.0.1
Safari: 13.1.1
npmPackages:
@storybook/addon-actions: ^5.3.19 => 5.3.19
@storybook/addon-links: ^5.3.19 => 5.3.19
@storybook/addons: ^5.3.19 => 5.3.19
@storybook/react: ^5.3.19 => 5.3.19
The text was updated successfully, but these errors were encountered: