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

Invalid path on module field #113

Open
luciocc55 opened this issue Apr 22, 2022 · 2 comments
Open

Invalid path on module field #113

luciocc55 opened this issue Apr 22, 2022 · 2 comments

Comments

@luciocc55
Copy link

luciocc55 commented Apr 22, 2022

This is related to @harmony-js/crypto lib

For context im using Vite

Inside the package.json of the lib this path is set as the module, but on the dist folder this file doesnt exist

"module": "dist/index.esm.js",

This ends triggering an error
Failed to resolve entry for package "@harmony-js/crypto". The package may have incorrect main/module/exports specified in its package.json: Failed to resolve entry for package "@harmony-js/crypto". The package may have incorrect main/module/exports specified in its package.json.

Am i missing something?

@giraffekey
Copy link

I also have this issue with Vite.

@giraffekey
Copy link

Replacing all index.esm.js with index.js manually solves this issue, though this is undone when node_modules is deleted.

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