vite icon indicating copy to clipboard operation
vite copied to clipboard

Target build ESNEXT + Error with browser compatibility

Open ManuBernard opened this issue 1 year ago • 0 comments

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

ManuBernard avatar Jul 31 '22 06:07 ManuBernard