We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
WASM bindings do not work with ESM
v0.1.3
bindings work
since in package.json just files are exported in an ESM project you can't consume from directories like node and web
files
node
web
Yes
ModuleNotFound
The text was updated successfully, but these errors were encountered:
can be fixed pretty simply with adding explicit exports in package.json
"exports": { "./node": { "require": "./node/lib/index.js", "import": { "types": "./node/lib/index.d.js", "default": "./node/lib/index.js" }, "default": "./node/lib/index.js" } }
Sorry, something went wrong.
@coodos your example is missing the web export which results in Missing "./web" specifier in "@iota/sdk-wasm" package for packages that want to use it
Missing "./web" specifier in "@iota/sdk-wasm" package
For me I can use import { Client } from '@iota/sdk-wasm/node/lib/index.js'; in an ESM project
import { Client } from '@iota/sdk-wasm/node/lib/index.js';
Thoralf-M
No branches or pull requests
Issue description
WASM bindings do not work with ESM
Version
v0.1.3
Expected behaviour
bindings work
Actual behaviour
since in package.json just
files
are exported in an ESM project you can't consume from directories likenode
andweb
Can the issue reliably be reproduced?
Yes
Steps to reproduce the issue
Errors
ModuleNotFound
Duplicate declaration
The text was updated successfully, but these errors were encountered: