You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Module not found: Can't resolve 'rpc-websockets/dist/lib/client'
After install, I got
(node:31795) [DEP0060] DeprecationWarning: The `util._extend` API is deprecated. Please use Object.assign() instead.
(Use `node --trace-deprecation ...` to show where the warning was created)
- ready started server on 0.0.0.0:3000, url: http://localhost:3000
- event compiled client and server successfully in 1066 ms (306 modules)
- wait compiling...
(node:31797) [DEP0060] DeprecationWarning: The `util._extend` API is deprecated. Please use Object.assign() instead.
(Use `node --trace-deprecation ...` to show where the warning was created)
- wait compiling /page (client and server)...
🌼 daisyUI 4.7.2
├─ ✔︎ 2 themes added https://daisyui.com/docs/themes
╰─ ❤︎ Support daisyUI project: https://opencollective.com/daisyui
- error ../node_modules/@solana/web3.js/lib/index.browser.esm.js:12:0
Module not found: Package path ./dist/lib/client is not exported from package /Users/xin/developer-bootcamp-2024/project-4-crud-app/node_modules/rpc-websockets (see exports field in /Users/xin/developer-bootcamp-2024/project-4-crud-app/node_modules/rpc-websockets/package.json)
https://nextjs.org/docs/messages/module-not-found
Import trace for requested module:
./components/account/account-ui.tsx
./components/ui/ui-layout.tsx
./components/dashboard/dashboard-feature.tsx
- wait compiling /_error (client and server)...
- error ../node_modules/@solana/web3.js/lib/index.browser.esm.js:12:0
Module not found: Package path ./dist/lib/client is not exported from package /Users/xin/developer-bootcamp-2024/project-4-crud-app/node_modules/rpc-websockets (see exports field in /Users/xin/developer-bootcamp-2024/project-4-crud-app/node_modules/rpc-websockets/package.json)
https://nextjs.org/docs/messages/module-not-found
Import trace for requested module:
./components/cluster/cluster-data-access.tsx
The text was updated successfully, but these errors were encountered:
After installing what?
The error message indicates that there's a module not found error related to @solana/web3.js and rpc-websockets.
The specific error states that the package path ./dist/lib/client is not exported from the rpc-websockets package.
Let's start with the command you called.
What did you type?
Module not found: Can't resolve 'rpc-websockets/dist/lib/client'
After install, I got
The text was updated successfully, but these errors were encountered: