vite
vite copied to clipboard
Target build ESNEXT + Error with browser compatibility
Describe the bug
Hi, I am trying to use Metaplex / Solana Web3 with vite & vue.
It seems to have an error with the build target.
I receive this error:
Big integer literals are not available in the configured target environment ("chrome87", "edge88", "es2020", "firefox78", "safari13" + 2 overrides)
It is weird, my build target is esnext so it should work. I tried with multiple version of node, I am a bit lost.
Can someone help?
I followed this starterkit: https://github.com/metaplex-foundation/js-examples/tree/main/getting-started-vite
Reproduction
https://github.com/ManuBernard/metaplex-vue-vite
System Info
System:
OS: macOS 11.6.1
CPU: (12) x64 Intel(R) Core(TM) i7-9750H CPU @ 2.60GHz
Memory: 2.67 GB / 16.00 GB
Shell: 5.8 - /bin/zsh
Binaries:
Node: 16.16.0 - ~/.nvm/versions/node/v16.16.0/bin/node
Yarn: 1.22.19 - ~/.nvm/versions/node/v16.16.0/bin/yarn
npm: 8.11.0 - ~/.nvm/versions/node/v16.16.0/bin/npm
Browsers:
Chrome: 103.0.5060.134
Firefox: 98.0.2
Safari: 14.1.2
npmPackages:
@vitejs/plugin-vue: ^3.0.0 => 3.0.1
vite: ^3.0.0 => 3.0.4
Used Package Manager
npm
Logs
{ detail: undefined, id: '', location: { column: 24, file: 'node_modules/noble-ed25519/index.js', length: 2, line: 661, lineText: ' cached.multiply(1n);', namespace: '', suggestion: '' }, notes: [], pluginName: '', text: 'Big integer literals are not available in the configured target environment ("chrome87", "edge88", "es2020", "firefox78", "safari13" + 2 overrides)' }
Validations
- [X] Follow our Code of Conduct
- [X] Read the Contributing Guidelines.
- [X] Read the docs.
- [X] Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
- [X] Make sure this is a Vite issue and not a framework-specific issue. For example, if it's a Vue SFC related bug, it should likely be reported to vuejs/core instead.
- [X] Check that this is a concrete bug. For Q&A open a GitHub Discussion or join our Discord Chat Server.
- [X] The provided reproduction is a minimal reproducible example of the bug.