jito-labs / jito-ts

Jito Typescript SDK
Other
92 stars 50 forks source link

Can't run package in a react project #19

Open bircher044 opened 6 months ago

bircher044 commented 6 months ago

Hi everyone! I was hoping to use Jito-sdk in my React project but facing this issue with one of the packages inside: photo_2024-02-06_03-12-06

Already tried to add:

"browser" :{
 "tls" : false,
 ...
}

to my package.json and it didnt help me. Also tried to use different node.js versions and still no success. Maybe someone could help with this?

yyidota commented 4 months ago

I also encountered such a problem. Is jito-ts unable to be referenced in front-end projects and can only be used in node services?

bircher044 commented 4 months ago

I also encountered such a problem. Is jito-ts unable to be referenced in front-end projects and can only be used in node services?

yes, you could resolve some modules but not everyone. My solution was to use a backend with jito for my frontend project