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
Uncaught TypeError: Cannot set property default of #<Object> which has only a getter #3437
Comments
I'm experiencing this by trying out Grommet with Vite. It looks to me to be similar to: apollographql/apollo-client#4843 That led onwards to: rollup/rollup#3137 Which was fixed here: rollup/rollup#3959 But simply bumping Rollup does not resolve the situation - not when running |
Same issue |
Same issue here, it is affecting Error log:
I found it is possibly related to #2976 . Rollup and esbuild is not the cause since downgrading them have no effect. By following this migration guide to apply dynamic import polyfill, this error will gone. So there might be some difference between native dynamic imports and the polyfill, which cause this issue. For those who encountered this issue, you can try adding back the polyfill to your
|
The issue seems to be in babel and it was fixed here. The same issue was fixed in the TypeScript compiler. If your project is using one dependency that is shipped by using a Babel version under v7.14.0, then it has to be updated from their side to be compatible with esbuild. Update: Confirmed, at Prime React they bumped their babel version, fixing the issue with esbuild. So since version 6.4.0 of Prime React it works with Vite |
This issue has been locked since it has been closed for more than 14 days. If you have found a concrete bug or regression related to it, please open a new bug report with a reproduction against the latest Vite version. If you have any other comments you should join the chat at Vite Land or create a new discussion. |
Describe the bug
After upgrading to version
2.3.0
seems like there is an issue with EsBuild (In my case it happens when I try to mount components from Prime React). Vite version2.2.4
seems to work fine with the same project configuration/dependencies.Reproduction
This minimal project reproduces the issue.
Steps:
npm i
npm run dev
This is the error in the browser's console:
And this is line error:
System Info
Used package manager:
npm
Logs
The text was updated successfully, but these errors were encountered: