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
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:
I have been working on implementing electron context isolation & disabling render node integration for application security best practices & the error was not breaking the build process prior to these changes, so perhaps that's a factor too?
rosskevin
changed the title
[vite]: Rollup failed to resolve import "virtual:i18next-loader"
Electron runtime issue - [vite]: Rollup failed to resolve import "virtual:i18next-loader"
Mar 13, 2024
I'm getting this blocking error during build:
I tried adding the following to my vite config without success:
Is there a configuration I'm missing for rollup to support vite virtual modules?
Thanks
The text was updated successfully, but these errors were encountered: