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

Error when importing library #86

Open
valavanisleonidas opened this issue Dec 12, 2024 · 3 comments
Open

Error when importing library #86

valavanisleonidas opened this issue Dec 12, 2024 · 3 comments

Comments

@valavanisleonidas
Copy link

Hello,

First of all the library is awesome.

I am trying to use the library to run a nodejs library (https://github.com/personaelabs/spartan-ecdsa). When I install and import the library in the main.js script it crashes with error {"code":"ERR_NO_ICU"}

the import I am trying to do is this

  const { MembershipProver, MembershipVerifier, Poseidon, Tree } = require('@personaelabs/spartan-ecdsa');

Any idea what is this or how to get past this ?

Thank you

@freddi301
Copy link

ERR_NO_ICU is realtod to internationalization support builtin in nodejs.
I do not remeber exactly but there is a way to enable it by using a nodej build that includeds those features

@valavanisleonidas
Copy link
Author

@freddi301 thank you for your answer. Is there any documentation or tutorial on how to build nodejs and use it in this library with the full icu ??

@freddi301
Copy link

i was able to do it tracking down build config code starting from manyverse source code. But it was a long time ago.
I think only @staltz can answer this question

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