-
Notifications
You must be signed in to change notification settings - Fork 2.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
storybook: loading shared styles with sass-loader is broken #8882
Comments
Hi there @gkamperis ! Thanks for filing an issue! Can you let me know if this comment helps? Also, if any of these issues help: |
Also, please take a look at this comment in this issue here. That is, you can use a format like this in your project:
|
Hello @mandarini thanks for the quick response.
seems to have no effect.
seems to work but... it is different to for example it does not load svgs... with with Any ideas on how to get around this? Thanks |
@mandarini wow this is mind-boggling!
breaks with svgs not found as mentioned in the previous comment confusing the paths ( But... if I just rename the file and update the config accordingly...
it works! svgs are resolved correctly no compilation error and icons shown correctly! |
@mandarini I figured it out.... turns out... I forgot to remove
and that was somehow causing issues. once removed On a final note... it would be good to update the docs with the https://nx.dev/storybook/overview-angular#setting-up-projectbuildconfig Pls feel free to close this issue. Thanks! |
Yes, updating the docs is in the roadmap! :) Thank you! |
See nrwl/nx#8790 and nrwl/nx#8882 for information about storybook config changes.
New docs for |
@mandarini amazing! thanks for all your help! |
This issue has been closed for more than 30 days. If this issue is still occuring, please open a new issue with more recent context. |
Current Behavior
Importing shared scss into a Storybook via
is not working via Nx.
NOTE: It is working with the standard Storybook setup following
https://storybook.js.org/tutorials/intro-to-storybook/angular/en/get-started/
and adding custom "shared" scss
Expected Behavior
Expect this to work as per default Storybook - was also working in the past...
Steps to Reproduce
Create an Nx workspace with shared styles as per Nx example repo.
https://github.com/nrwl/nx-examples
Import the shared styles via
Another report of the same issue here
#7613 (comment)
Failure Logs
No logs are created.
Environment
Nx 13.7.3
Angular 13.2.1
@storybook-angular 6.4.18
The text was updated successfully, but these errors were encountered: