-
-
Notifications
You must be signed in to change notification settings - Fork 7
Open
Description
I'm getting this blocking error during build:
error during build:
Error: [vite]: Rollup failed to resolve import "virtual:i18next-loader" from "filepath/src/localization/index.js".This is most likely unintended because it can break your application at runtime.
If you do want to externalize this module explicitly add it to
`build.rollupOptions.external`
at viteWarn (file:///filepath/node_modules/vite/dist/node/chunks/dep-jvB8WLp9.js:67190:27)
at onRollupWarning (file:///filepath/node_modules/vite/dist/node/chunks/dep-jvB8WLp9.js:67218:9)
at onwarn (file:///filepath/node_modules/vite/dist/node/chunks/dep-jvB8WLp9.js:66922:13)
at file:///filepath/node_modules/rollup/dist/es/shared/node-entry.js:18300:13
at Object.logger [as onLog] (file:///filepath/node_modules/rollup/dist/es/shared/node-entry.js:19957:9)
at ModuleLoader.handleInvalidResolvedId (file:///filepath/node_modules/rollup/dist/es/shared/node-entry.js:18901:26)
at file:///filepath/node_modules/rollup/dist/es/shared/node-entry.js:18859:26
I tried adding the following to my vite config without success:
build: {
rollupOptions: {
external: ['virtual:i18next-loader'],
},
}
Is there a configuration I'm missing for rollup to support vite virtual modules?
Thanks
carloschneider
Metadata
Metadata
Assignees
Labels
No labels