Latest Vite breaks npm run frontend execution #6765
Unanswered
ala85
asked this question in
Troubleshooting
Replies: 1 comment
-
No issue here, you're likely missing dependencies, otherwise this build would've failed (can also confirm locally) https://github.com/danny-avila/LibreChat/actions/runs/14295792120/job/40062759084 instead of |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
What happened?
When pulling last changes, including upgrade of the vite plugin, seems that rollup fails with following:
error during build:
[vite-plugin-pwa:build] [vite]: Rollup failed to resolve import "vite-plugin-node-polyfills/shims/process" from "C:/dev/my-app/node_modules/recoil/es/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
Version Information
5092cd774799ac1830afe6725ce535fe06ddca8c
Steps to Reproduce
As workaround tried to set alias in vite.config.ts, but doesnt not fill like a proper solution
'vite-plugin-node-polyfills/shims/buffer': path.resolve(
__dirname,
'node_modules',
'vite-plugin-node-polyfills',
'shims',
'buffer',
'dist',
'index.cjs'
),
'vite-plugin-node-polyfills/shims/global': path.resolve(
__dirname,
'node_modules',
'vite-plugin-node-polyfills',
'shims',
'global',
'dist',
'index.cjs'
),
'vite-plugin-node-polyfills/shims/process': path.resolve(
__dirname,
'node_modules',
'vite-plugin-node-polyfills',
'shims',
'process',
'dist',
'index.cjs'
),
What browsers are you seeing the problem on?
Chrome
Relevant log output
Screenshots
No response
Code of Conduct
Beta Was this translation helpful? Give feedback.
All reactions