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:
json npm
"overrides": {
"rpc-websockets": "7.10.0",
"@solana/web3.js": "1.91.6"
},
json yarn
"resolutions": {
"rpc-websockets": "7.10.0",
"@solana/web3.js": "1.91.6"
}Warning
Note that even if you are not using Solana, you still need to include the @solana/web3 line above. This should be resolved in a future SDK release.