Make this simple project work with Solana Wallet Adapter
Project details
I have a project that works with discord to verify the user logging in.
I want to add this to the project:
When I add the import to
import { ConnectionProvider, WalletProvider } from ‘@solana/wallet-adapter-react’;
import { WalletAdapterNetwork } from ‘@solana/wallet-adapter-base’;
import { UnsafeBurnerWalletAdapter } from ‘@solana/wallet-adapter-wallets’;
import {
WalletModalProvider,
WalletDisconnectButton,
WalletMultiButton
} from ‘@solana/wallet-adapter-react-ui’;
import { clusterApiUrl } from ‘@solana/’;
——-
It fails with an error (multiple of these):
ERROR in /home/admin/wallet-adapter/packages/core/react/lib/esm/
Module parse failed: /home/admin/wallet-adapter/packages/core/react/lib/esm/ Unexpected token (35:22)
You may need an appropriate loader to handle this file type.
——-
The issue is most likely to do with how the package is setup, but I’m not sure how to set it up so everything plays nicely with each other.
This isn’t a REQUEST for coding, I simply want someone to setup this package properly (maybe with another npx etc) so I can use the Solana wallet adapter without errors. If the imports are working then I assume the rest will be fine and that’s all I’d need.
Thank you.
Awarded to:

Yevhenii K.
(5.0)
Awarded to:

Yevhenii K.
(5.0)
Project details
I want to add this to the project:
When I add the import to
import { ConnectionProvider, WalletProvider } from ‘@solana/wallet-adapter-react’;
import { WalletAdapterNetwork } from ‘@solana/wallet-adapter-base’;
import { UnsafeBurnerWalletAdapter } from ‘@solana/wallet-adapter-wallets’;
import {
WalletModalProvider,
WalletDisconnectButton,
WalletMultiButton
} from ‘@solana/wallet-adapter-react-ui’;
import { clusterApiUrl } from ‘@solana/’;
——-
It fails with an error (multiple of these):
ERROR in /home/admin/wallet-adapter/packages/core/react/lib/esm/
Module parse failed: /home/admin/wallet-adapter/packages/core/react/lib/esm/ Unexpected token (35:22)
You may need an appropriate loader to handle this file type.
——-
The issue is most likely to do with how the package is setup, but I’m not sure how to set it up so everything plays nicely with each other.
This isn’t a REQUEST for coding, I simply want someone to setup this package properly (maybe with another npx etc) so I can use the Solana wallet adapter without errors. If the imports are working then I assume the rest will be fine and that’s all I’d need.
Thank you.