question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

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:open
  • Created 2 years ago
  • Reactions:11
  • Comments:6

github_iconTop GitHub Comments

2reactions
petertellgrencommented, Mar 11, 2022

Same issue in React project:

  • Vite: 2.8.6
  • Vime: 5.3.1
0reactions
marimendez88commented, May 25, 2022

Same here in a vue project:

"vite": "^2.9.5",
"@ionic/vue": "^6.1.6",
"@ionic/vue-router": "^6.1.6",
"vue": "^3.2.33",
"vue-router": "^4.0.14"
Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found