Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error: Cannot find module 'rpc-websockets/dist/lib/client' #1838

Open
EduardIshmukhametov opened this issue Aug 21, 2024 · 0 comments
Open

Comments

@EduardIshmukhametov
Copy link

I have got this error when I tried run your example code
https://docs.pyth.network/price-feeds/use-real-time-data/solana#price-update-accounts

`Error: Cannot find module 'rpc-websockets/dist/lib/client'
Require stack:

  • /home/user/projects/superlendy-sdk/node_modules/jito-ts/node_modules/@solana/web3.js/lib/index.cjs.js
  • /home/user/projects/superlendy-sdk/node_modules/jito-ts/dist/sdk/block-engine/types.js
  • /home/user/projects/superlendy-sdk/node_modules/@pythnetwork/solana-utils/lib/jito.js
  • /home/user/projects/superlendy-sdk/node_modules/@pythnetwork/solana-utils/lib/transaction.js
  • /home/user/projects/superlendy-sdk/node_modules/@pythnetwork/solana-utils/lib/index.js
  • /home/user/projects/superlendy-sdk/node_modules/@pythnetwork/pyth-solana-receiver/lib/PythSolanaReceiver.js
  • /home/user/projects/superlendy-sdk/node_modules/@pythnetwork/pyth-solana-receiver/lib/index.js
  • /home/user/projects/superlendy-sdk/build/src/domain/PythService/index.js
  • /home/user/projects/superlendy-sdk/build/src/index.js
  • /home/user/projects/superlendy-sdk/build/cli/index.js
    at Module._resolveFilename (node:internal/modules/cjs/loader:1075:15)
    at Module._load (node:internal/modules/cjs/loader:920:27)
    at Module.require (node:internal/modules/cjs/loader:1141:19)
    at require (node:internal/modules/cjs/helpers:110:18)
    at Object. (/home/user/projects/superlendy-sdk/node_modules/jito-ts/node_modules/@solana/web3.js/lib/index.cjs.js:20:32)
    at Module._compile (node:internal/modules/cjs/loader:1254:14)
    at Module._extensions..js (node:internal/modules/cjs/loader:1308:10)
    at Module.load (node:internal/modules/cjs/loader:1117:32)
    at Module._load (node:internal/modules/cjs/loader:958:12)
    at Module.require (node:internal/modules/cjs/loader:1141:19) {
    code: 'MODULE_NOT_FOUND',
    requireStack: [
    '/home/user/projects/superlendy-sdk/node_modules/jito-ts/node_modules/@solana/web3.js/lib/index.cjs.js',
    '/home/user/projects/superlendy-sdk/node_modules/jito-ts/dist/sdk/block-engine/types.js',
    '/home/user/projects/superlendy-sdk/node_modules/@pythnetwork/solana-utils/lib/jito.js',
    '/home/user/projects/superlendy-sdk/node_modules/@pythnetwork/solana-utils/lib/transaction.js',
    '/home/user/projects/superlendy-sdk/node_modules/@pythnetwork/solana-utils/lib/index.js',
    '/home/user/projects/superlendy-sdk/node_modules/@pythnetwork/pyth-solana-receiver/lib/PythSolanaReceiver.js',
    '/home/user/projects/superlendy-sdk/node_modules/@pythnetwork/pyth-solana-receiver/lib/index.js',
    '/home/user/projects/superlendy-sdk/build/src/domain/PythService/index.js',
    '/home/user/projects/superlendy-sdk/build/src/index.js',
    '/home/user/projects/superlendy-sdk/build/cli/index.js'
    ]
    }
    `
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant