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

Cannot find module inside lib #29

Open
Bogdalleksss opened this issue Jun 22, 2024 · 5 comments
Open

Cannot find module inside lib #29

Bogdalleksss opened this issue Jun 22, 2024 · 5 comments

Comments

@Bogdalleksss
Copy link

image

I trying this fix through remove node_modules and package-lock.json after which run command "npm install", and this not help me.

How to fix it?

@wavvdev
Copy link

wavvdev commented Jul 10, 2024

I am having the same issue as well!

@chonbon
Copy link

chonbon commented Jul 13, 2024

Same issue now too.

@maxwellpepper
Copy link

You need to add the following code to the package.json file inside rpc-websockets node module inside of the package:

"exports": {
"./dist/lib/client": "./dist/lib/client.cjs",
"./dist/lib/client/websocket": "./dist/lib/client/websocket.cjs",
".": "./dist/index.cjs",
"./browser": "./dist/index.browser.cjs"
},

Obviously you need to update the destinations and filenames but this should work.

@mukul013
Copy link

mukul013 commented Sep 5, 2024

I am still having this issue , if someone can share the exact code which need to be updated in the rpc-websockets package.json , that will help.

@piesrtasty
Copy link

You need to add the following code to the package.json file inside rpc-websockets node module inside of the package:

"exports": { "./dist/lib/client": "./dist/lib/client.cjs", "./dist/lib/client/websocket": "./dist/lib/client/websocket.cjs", ".": "./dist/index.cjs", "./browser": "./dist/index.browser.cjs" },

Obviously you need to update the destinations and filenames but this should work.

real mvp right here y'all 💯

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

6 participants