harmony-one / sdk

Javascript SDK of Harmony protocol.
MIT License
91 stars 44 forks source link

Invalid path on module field #113

Open luciocc55 opened 2 years ago

luciocc55 commented 2 years ago

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 commented 1 year ago

I also have this issue with Vite.

giraffekey commented 1 year ago

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