You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm using this module in my https://github.com/asbjornenge/onchfs-cli package. Or, I would like to, but I had to build a custom version because of this error when consuming the module:
import { keccak256 } from "js-sha3";
^^^^^^^^^
SyntaxError: Named export 'keccak256' not found. The requested module 'js-sha3' is a CommonJS module, which may not support all module.exports as named exports.
CommonJS modules can always be imported via the default export, for example using:
import pkg from 'js-sha3';
const { keccak256 } = pkg;
Fixing that import statement in the dist/index.mjs fixed my issue. For now I just packed it with my module, but would be nice to get this fixed and comsume it correctly.
The text was updated successfully, but these errors were encountered:
I'm using this module in my https://github.com/asbjornenge/onchfs-cli package. Or, I would like to, but I had to build a custom version because of this error when consuming the module:
Fixing that import statement in the dist/index.mjs fixed my issue. For now I just packed it with my module, but would be nice to get this fixed and comsume it correctly.
The text was updated successfully, but these errors were encountered: