altcha-org / altcha-lib

A JavaScript library for creating and verifying ALTCHA challenges.
https://altcha.org
MIT License
18 stars 5 forks source link

No "exports" main defined in package.json #1

Closed JustDoItSascha closed 5 months ago

JustDoItSascha commented 5 months ago

Hey! I'm trying to use altcha-lib in a NestJS backend and when I import it, I get this error:

Error: No "exports" main defined in node_modules/altcha-lib/package-json.

Could you please add the exports field to the package.json? Thank you!

ovx commented 5 months ago

Hi, thanks for reporting. The problem was caused by the missing commonjs build, which is now added in the version 0.1.2.