-
-
Notifications
You must be signed in to change notification settings - Fork 6.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Production build fails in runtime after update to 2.7.1 #6061
Comments
Same problem here. |
Any update on it? |
Verified on Vite v2.7.6 - issue is still reproduced |
Caused by this commit: #5665 |
I'm experiencing the same issue, a workaround for the Beware that this will only work for the |
@oschwede Thanks! I can confirm that this workaround is working (this may mean that there will be no proper fix for some time) |
Thanks! It is working with this workaround, but I do feel we need to address it properly. It was a regression and we know which one caused it. |
Still the same issue with Vite 2.9.1. Workaround no longer seems to work either :( |
i having the same problem, after production build im getting Uncaught TypeError: Cannot read properties of undefined (reading 'prototype') how can I fix it? Uncaught TypeError: Cannot read properties of undefined (reading 'prototype') |
No issue for us. Workaround works perfectly. |
How can i solve this? |
Similar issue here with Vite>v2.6:
Don't know how to fix this. Running with Vite v2.6 until #9170 is released. Hope this will fix the problem. |
Describe the bug
We observe broken production builds with an update of Vite from 2.6.14 to 2.7.1
As seen on reproduction there seems to be some too aggressive tree shaking occurring during the build phase.
Vendor file size reduced from 2041.35 KiB to 669.87 KiB.
Production build is broken with the same error no matter what minification option we choose: 'terser', 'esbuild' or 'false'
I'm not sure is it possible to reproduce the error without
devextreme
package, but our whole setupVite+Vue3+devextreme-vue
has worked pretty well for quite a long time.Reproduction
Here is a repo with repro:
https://github.com/SlyNet/devexpress-vite-repro
With Vite 2.6.14
Navigate to http://localhost:5000 - there is datagrid loaded, no console errors
With Vite 2.7.1
Observe some drastic changes in vendor lib size.
Navigate to http://localhost:5000 - there is console errors"
System Info
Used Package Manager
npm
Logs
Validations
The text was updated successfully, but these errors were encountered: