You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
4 | setup(__props, { expose }) {
5 | expose();
6 | const icon = defineAsyncComponent(() => import(`@/components/v/icon/${name}.vue`));
| ^
7 | const __returned__ = { icon };
8 | Object.defineProperty(__returned__, "__isScriptSetup", { enumerable: false, value: true });
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
Environment
Windows_NT
v16.14.2
3.0.0-rc.3
yarn@1.22.17
vite
globalName
,app
,css
,alias
,modules
,colorMode
,buildDir
,vue
,vite
@nuxtjs/color-mode@3.0.3
,nuxt-lodash@2.2.0
,@vueuse/nuxt@8.5.0
-
Reproduction
Describe the bug
import cannot use dynamic variables.
✅ : import('@/components/v/icon/plus.vue')
❌ : import(`@/components/v/icon/${name}.vue`)
Additional context
Related issue: #12655
Logs
No response
The text was updated successfully, but these errors were encountered: