I recently installed the @solana packages in order to use the Solana Wallet Adapter but am now running into build errors. The packages I installed using npm are
- @solana/wallet-adapter-base ^0.9.16
- @solana/wallet-adapter-react ^0.15.18
- @solana/wallet-adapter-react-ui ^0.9.16
- @solana/web3.js ^1.54.1
- @solana/wallet-adapter-wallets ^0.18.7
The build error I get is
./node_modules/@solana/web3.js/lib/index.browser.esm.js 3673:30
Module parse failed: Identifier directly after number (3673:30)
You may need an appropriate loader to handle this file type.
| key: "isActive",
| value: function isActive() {
> var U64_MAX = Math.pow(2n, 64n) - 1n;
| return this.state.deactivationSlot === U64_MAX;
| }
I am currently running react ^18.1.0