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.js returning 'TypeError: Failed to fetch dynamically imported module' when leveraging vite-plugin-svgr #79
Comments
I have the same issue! My storybook config:
My package.json
|
Did you find a solution ? I just updated vite from |
I'm using vite-plugin-svgr just fine in my storybook. Could someone having an issue create a small reproduction, perhaps using https://storybook.new? |
I am attempting to import .svg files for a storybook project and am running into an module import error. I have tried a few alternative solutions but have made no progress. It's throwing an error specifically import statement.
vite.config.ts:
Package.json:
import structure:
import { ReactComponent as logoIcon } from "@public/logos/logoIcon.svg";
The text was updated successfully, but these errors were encountered: