-
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
React app breaks when adding storybook to a react library #3255
Comments
The strange thing is that the react-lib and storybook has nothing to do with the react-app. |
If I manually force import star from '!url-loader!./star.svg'; |
This is a issue that was fixed in For some reasons in my workspace I have installed
I investigated more it seems that when I introduced storybook in my workspace, Dependency was bumped only in If I do a Between
What we have to do is to use above workaround, and wait when storybook will get out of beta and nx will upgrade to v6. Related issues: |
Hi there @iamandrewluca ! Thank you for filing an issue! I just reproduced your issue locally! So, hopefully, when this PR if fixed and merged, you will no longer have an issue! :) |
Hi @iamandrewluca ! I believe your issue should be solved in the next release, fixed by PR #3611. If you take a look at the new I will close this issue now, but let me know if your issue persists! |
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
React app won't start,
@svgr/webpack
throws errors, that can't parse svg. See failure logsExpected Behavior
App starts as normal
Steps to Reproduce
# create a new workspace with org name `myorg`, chose `react` app, and `scss` styles yarn create nx-workspace
# generate a react library yarn nx g @nrwl/react:lib react-lib
# here the default react app start normal, no errors yarn start --open
# here the default react app start with errors yarn start --open
Bellow repo has 2 commits. First one adds react app and lib, everything works ok
Second one adds storybook, app starts with errors
https://github.com/iamandrewluca/nx-demo-broken-app-with-storybook(repo deleted)Failure Logs
Environment
node
v10.21.0
yarn
1.22.4
npm
6.14.5
os
Ubuntu 18.04.4 lTS
The text was updated successfully, but these errors were encountered: