-
-
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
SVG imports are undefined #5613
Comments
Works fine for me, but I used create-react-app which adds |
Confirmed, this should only be supported out of the box for CRA apps. We plan to update the defaults post 5.0 release. |
Not using create-react-app explicitly. Managed to get this working with custom webpack config and manually installing |
Glad to hear it. We'll try to make that a lot easier sometime soon. |
Been struggling getting this to work with Gatsby, TS, Storybook 5 setup. Works fine in Gatsby, but not in Storybook unfortunately 😢 |
For those interested, I was able to get
for reference: https://storybook.js.org/docs/configurations/custom-webpack-config/ |
hey @pedrombafonso, thank you for the solution. but let's try to make it more adaptable:
|
Describe the bug
When I import SVGs into storybook, the imports are undefined.
To Reproduce
Expected behavior
The SVG should be imported successfully.
Code snippets
If applicable, add code samples to help explain your problem.
System:
"@storybook/react": "^4.1.11"
Additional context
Judging by this issue, this should be supported out of the box without a custom Webpack or Babel config.
The text was updated successfully, but these errors were encountered: