Replies: 7 comments 5 replies
-
Vite itself doesn't support transpiling BigInt as it's not supported by esbuild. plugin-legacy supports transpiling BigInt for legacy chunks. But you are disabling that. If you want to transpile BigInt for modern chunks, I guess running babel-plugin-transform-jsbi-to-bigint with @rollup/plugin-babel would work. |
Beta Was this translation helpful? Give feedback.
-
I just ran into this as well.
but it WILL build this:
Example: |
Beta Was this translation helpful? Give feedback.
-
Any workaround for this problem? |
Beta Was this translation helpful? Give feedback.
-
those errors randomly started to appear and break prod build after I've changed nothing literally in my project |
Beta Was this translation helpful? Give feedback.
-
someone solved it? |
Beta Was this translation helpful? Give feedback.
-
Experiencing same problem |
Beta Was this translation helpful? Give feedback.
-
has anyone else managed to solve this? Having this issue with quasar and polkadot api |
Beta Was this translation helpful? Give feedback.
-
Describe the bug
I'm using @vitejs/plugin-legacy to enable support for older browser versions (chrome65 specifically) and after upgrading to nuxt 3.5.3, which apparently has BigInts in its code, I can no longer build the app because of the following error:
I've tried adjusting the configuration of @vitejs/plugin-legacy, even enabling all polyfills w/
modernPolyfills: true
, but it doesn't help. Support for chrome65 is a requirement in this case so I can't just target a newer chrome version.Why isn't vite and @vitejs/plugin-legacy able to transpile away the BigInt back into a basic number? How can I resolve this in a way that I can keep chrome65 support?
Reproduction
specklesystems/speckle-server#1647
Steps to reproduce
See PR description
System Info
Used Package Manager
yarn
Logs
No response
Validations
Beta Was this translation helpful? Give feedback.
All reactions