React Issues
Cannot resolve rpc-websockets
If you are seeing an error like Module not found: Can't resolve 'rpc-websockets/dist/lib/client.cjs'
when trying to use the SDK, you can fix this by adding the following to your package.json
file:
Note that even if you are not using Solana, you still need to include the @solana/web3
line below. This will be fixed in the next major SDK release (V3).
Was this page helpful?