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 on import: incorrect module exports #4

Open
jackdishman opened this issue Oct 16, 2022 · 3 comments
Open

Error on import: incorrect module exports #4

jackdishman opened this issue Oct 16, 2022 · 3 comments

Comments

@jackdishman
Copy link

jackdishman commented Oct 16, 2022

Getting this error after importing:

Failed to resolve entry for package "near-contract-parser". The package may have incorrect main/module/exports specified in its package.json.

@jackdishman
Copy link
Author

@encody

@jackdishman jackdishman changed the title Error on import: Error on import: incorrect module exports Oct 16, 2022
@Abbaskt
Copy link

Abbaskt commented Dec 20, 2022

Looks like the published package does not contain any lib folder where all the files should be present after building

@mokorra
Copy link

mokorra commented Jul 19, 2023

  1. pull the repo into your node_modules
  2. cd near-contract-parser
  3. npm install
  4. npm run build

That made the import work for me

edit: do not forget to add the package to your package.json

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

3 participants