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

Project 4 not be able run locally #21

Open
xinzhang-hello opened this issue Jan 3, 2025 · 2 comments
Open

Project 4 not be able run locally #21

xinzhang-hello opened this issue Jan 3, 2025 · 2 comments

Comments

@xinzhang-hello
Copy link

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
@Totiruzi
Copy link

Totiruzi commented Jan 3, 2025

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?

@gabe-astrohacker
Copy link

I'm assuming they meant npm install. I have the same issue.
npm install; npm run dev

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

3 participants