Vite + Vue 3 dynamic import warning
See original GitHub issue[vite] warning:
/node_modules/.vite/@vime_vue-next.js
1818| return module[exportName];
1819| }
1820| return import(
| ^
1821| /* webpackInclude: /\.entry\.js$/ */
1822| /* webpackExclude: /\.system\.entry\.js$/ */
The above dynamic import cannot be analyzed by vite.
See https://github.com/rollup/plugins/tree/master/packages/dynamic-import-vars#limitations for supported dynamic import formats. If this is intended to be left as-is, you can use the /* @vite-ignore */ comment inside the import() call to suppress this warning.
Plugin: vite:import-analysis
File: /node_modules/.vite/@vime_vue-next.js?v=b7110c21
Issue Analytics
- State:
- Created 2 years ago
- Reactions:11
- Comments:6
Top Results From Across the Web
Features | Vite
Rewrite the imports to valid URLs like /node_modules/.vite/deps/my-dep.js?v=f3sf2ebd so that the browser can import them properly. Dependencies are Strongly ...
Read more >typescript - Vite + Vue Router - Dynamic Imports - Stack Overflow
Everything appears to be fine yet I get the above warning (and an error in console when I try to visit any routes...
Read more >Vue Router dynamic imports with Vite - show load progress?
Hello! I'm using Vue 3 with Vite 3. I've a component which relies on a heavy dependency, thus the bundle size goes over...
Read more >bug: vite vue 3 @ionic/vue@next dynamic import warning
bug: vite vue 3 @ionic/vue@next dynamic import warning · Prequisites. [X] I have read the Contributing Guidelines. · Ionic Framework Version. [ ] ......
Read more >Dynamic import() - vite-plugin-ssr
Vite automatically code-splits at import() : the code of some-component isn't included in the initial JavaScript bundle and is loaded only if/when import('some- ......
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

Same issue in React project:
Same here in a vue project: