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

neon-ledger does not work in nodejs #932

Closed
millyjed opened this issue Jan 7, 2025 · 2 comments
Closed

neon-ledger does not work in nodejs #932

millyjed opened this issue Jan 7, 2025 · 2 comments

Comments

@millyjed
Copy link

millyjed commented Jan 7, 2025

"@cityofzion/neon-ledger": "^5.6.0"

import * as neon from '@cityofzion/neon-ledger';

Import is not possible, and the error Error: Cannot find module './main' occurs.
I think this error occurs because only the index.js file exists in @cityofzion/neon-ledger/dist, and the main file does not exist.
Is there any solution for this error?

@CityOfZion CityOfZion deleted a comment Jan 7, 2025
@snowypowers
Copy link
Member

The bug is that neon-ledger package,json is missing the dist folder in the files section which skips exporting the entire dist folder.

@snowypowers
Copy link
Member

v5.6.1 now should contain everything needed in the dist folder.

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