jito-labs / jito-ts

Jito Typescript SDK
Other
92 stars 50 forks source link

Cannot find module inside lib #29

Open Bogdalleksss opened 2 months ago

Bogdalleksss commented 2 months ago
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 commented 1 month ago

I am having the same issue as well!

chonbon commented 1 month ago

Same issue now too.

maxwellpepper commented 1 month ago

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.