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
This is probably a silly issue, but can't seem to find the solution. I have a super basic node project setup and for whatever reason am not able to properly import ecpair.
node:internal/errors:490
ErrorCaptureStackTrace(err);
^
Error [ERR_MODULE_NOT_FOUND]: Cannot find module 'E:\folder\project\node_modules\ecpair\src\esm\ecpair' imported from E:\folder\project\node_modules\ecpair\src\esm\index.js
at new NodeError (node:internal/errors:399:5)
at finalizeResolution (node:internal/modules/esm/resolve:232:11)
at moduleResolve (node:internal/modules/esm/resolve:850:10)
at defaultResolve (node:internal/modules/esm/resolve:1070:11)
at DefaultModuleLoader.resolve (node:internal/modules/esm/loader:306:12)
at DefaultModuleLoader.getModuleJob (node:internal/modules/esm/loader:155:32)
at ModuleWrap.<anonymous> (node:internal/modules/esm/module_job:76:33)
at link (node:internal/modules/esm/module_job:75:36) {
code: 'ERR_MODULE_NOT_FOUND'
}
Environment
Windows
Node v20
Using "type": "module" in package.json
Using "bitcoinjs-lib": "^7.0.0-rc.0"
Using "ecpair": "^3.0.0-rc.0",
The text was updated successfully, but these errors were encountered:
This is probably a silly issue, but can't seem to find the solution. I have a super basic node project setup and for whatever reason am not able to properly import ecpair.
Basic code sample
Error
Environment
"type": "module"
in package.jsonThe text was updated successfully, but these errors were encountered: