Comments (2)
I've been trying to get this working for two weeks now. I fixed all of the the module errors above, but I still have a missing function TransportRaceCondition in ./node_modules/@solana/wallet-adapter-ledger/node_modules/@ledgerhq/hw-transport/lib-es/Transport.js
because it has been renamed to TransportPendingOperation.
I tried following this fix:
But it doesn't work if I use Yarn. I need to use Yarn because NPM and PNPM does not installing the missing dependencies, resulting in this:
Failed to compile.
Module not found: Error: Can't resolve '@solana/wallet-adapter-base' in '/home/candid/wallet-adapter/packages/starter/create-react-app-starter/src'
ERROR in ./src/App.tsx 5:0-67
Module not found: Error: Can't resolve '@solana/wallet-adapter-base' in '/home/candid/wallet-adapter/packages/starter/create-react-app-starter/src'
ERROR in ./src/App.tsx 6:0-82
Module not found: Error: Can't resolve '@solana/wallet-adapter-react' in '/home/candid/wallet-adapter/packages/starter/create-react-app-starter/src'
ERROR in ./src/App.tsx 7:0-89
Module not found: Error: Can't resolve '@solana/wallet-adapter-react-ui' in '/home/candid/wallet-adapter/packages/starter/create-react-app-starter/src'
ERROR in ./src/App.tsx 8:0-75
Module not found: Error: Can't resolve '@solana/wallet-adapter-wallets' in '/home/candid/wallet-adapter/packages/starter/create-react-app-starter/src'
webpack compiled with 4 errors
ERROR in src/App.tsx:1:38
TS2307: Cannot find module '@solana/wallet-adapter-base' or its corresponding type declarations.
> 1 | import { WalletAdapterNetwork } from '@solana/wallet-adapter-base';
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2 | import { ConnectionProvider, WalletProvider } from '@solana/wallet-adapter-react';
3 | import { WalletModalProvider, WalletMultiButton } from '@solana/wallet-adapter-react-ui';
4 | import { UnsafeBurnerWalletAdapter } from '@solana/wallet-adapter-wallets';
ERROR in src/App.tsx:2:52
TS2307: Cannot find module '@solana/wallet-adapter-react' or its corresponding type declarations.
1 | import { WalletAdapterNetwork } from '@solana/wallet-adapter-base';
> 2 | import { ConnectionProvider, WalletProvider } from '@solana/wallet-adapter-react';
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
3 | import { WalletModalProvider, WalletMultiButton } from '@solana/wallet-adapter-react-ui';
4 | import { UnsafeBurnerWalletAdapter } from '@solana/wallet-adapter-wallets';
5 | import { clusterApiUrl } from '@solana/web3.js';
ERROR in src/App.tsx:3:56
TS2307: Cannot find module '@solana/wallet-adapter-react-ui' or its corresponding type declarations.
1 | import { WalletAdapterNetwork } from '@solana/wallet-adapter-base';
2 | import { ConnectionProvider, WalletProvider } from '@solana/wallet-adapter-react';
> 3 | import { WalletModalProvider, WalletMultiButton } from '@solana/wallet-adapter-react-ui';
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
4 | import { UnsafeBurnerWalletAdapter } from '@solana/wallet-adapter-wallets';
5 | import { clusterApiUrl } from '@solana/web3.js';
6 | import React, { FC, ReactNode, useMemo } from 'react';
ERROR in src/App.tsx:4:43
TS2307: Cannot find module '@solana/wallet-adapter-wallets' or its corresponding type declarations.
2 | import { ConnectionProvider, WalletProvider } from '@solana/wallet-adapter-react';
3 | import { WalletModalProvider, WalletMultiButton } from '@solana/wallet-adapter-react-ui';
> 4 | import { UnsafeBurnerWalletAdapter } from '@solana/wallet-adapter-wallets';
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
5 | import { clusterApiUrl } from '@solana/web3.js';
6 | import React, { FC, ReactNode, useMemo } from 'react';
7 |
from wallet-adapter.
Please try:
pnpm install
in the root of the wallet-adapter directorypnpm build
in the root, this will compile all of the packagespnpm start
in the starter directory
from wallet-adapter.
Related Issues (20)
- Not working devnet network for SolflareWalletAdapter HOT 1
- Please give a option to use custom Websocket RPC endpoint in react package HOT 1
- TypeError: off is not a function HOT 3
- Sending transaction with devnet connection does not work with Solflare wallet HOT 3
- Firebase auth HOT 1
- Where to import useWalletMultiButton in CustomConnectButton HOT 1
- signMessage for Safepal HOT 1
- signMessage for Ledger HOT 1
- How do I remove the drop down menu from the walletmultibutton and get it to open a popup like on the demo link? HOT 1
- Phantom on mainnet mode successfully signAndSend transactions while app is using a testnet HOT 1
- signAndSendTransaction method not available HOT 1
- Pass the krypair of backend wallet as a Signer for the transaction
- Can the wallet plugin support ok and backpack? HOT 2
- localstorage sometimes behaves strangely HOT 2
- sendTransaction doesn't work with String data HOT 1
- Sending SPL token using getOrCreateAssociatedTokenAccount wallets without the token doesn't work HOT 2
- Request blocked Warning from phantom wallet HOT 1
- I can't get the wallet to open to initiate a transaction. HOT 5
- Error: Hydration failed because the initial UI does not match what was rendered on the server. HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from wallet-adapter.