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

problem with your nexo pro code #3

Open
tblnx opened this issue Dec 27, 2023 · 1 comment
Open

problem with your nexo pro code #3

tblnx opened this issue Dec 27, 2023 · 1 comment

Comments

@tblnx
Copy link

tblnx commented Dec 27, 2023

Hi,
Found your code to communicatie with Nexo Pro. I was using a Python version, but that one was limited en had some errors. Ik tried to get your code running, but no. My steps:

  • git clone your code
  • step into that dir
  • yarn add nexo-pro
  • ts-node examples/account.ts
    I'm running Ubuntu 23.10
    The error I get is: cannot find module '@nexo-pro/index
    yarn test works however.
    My java/type script experience is n't too modern, mostly from when typescript arrived. yarn is new to me.
    yarn has version 1.22.21, ts-node 10.9.1
    node had 18.13 and npm 9.2.0

hope you have some ideas,
regards,
Ton

@aussedatlo
Copy link
Owner

aussedatlo commented Jan 5, 2024

Hello Ton, I have reproduced your error.

Effectively, you will need 2 extra steps to make it work.

  • git clone
  • step into that dir
  • yarn install <- don't forget to install all dependencies
  • yarn add nexo-pro

then you can edit the import from import Client from '@nexo-pro/index'; to import Client from 'nexo-pro' and it should work now.

I'll update the repo to make it work on the first time.

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

2 participants