-
-
Notifications
You must be signed in to change notification settings - Fork 6.2k
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
Error: Unknown variable dynamic import: ./icons/user.svg?raw #6992
Labels
Comments
Maybe you can try to use https://vitejs.dev/guide/features.html#glob-import to implement the same feature. |
I'm getting the same const { default: src } = await import(`./${slug}/cover.jpg?width=672`); |
Getting this as well. |
7 tasks
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Describe the bug
First, open the simple reproduction on Stackblitz. You will see that everything works there.
If you run
vite build && vite preview
though, you will see the error:Reproduction
https://stackblitz.com/edit/vitejs-vite-cm8srg?devtoolsheight=33&file=src/components/SvgIcon.vue
System Info
Used Package Manager
npm
Logs
No response
Validations
The text was updated successfully, but these errors were encountered: