-
-
Notifications
You must be signed in to change notification settings - Fork 83
Closed
Description
Description:
When running node with @swc-node/register/esm-register
, a "Module not found" error occurs. The error message indicates that the module ipaddr.js
could not be resolved in the file helper.mjs
located in the @swc-node/register
package.
Steps to reproduce:
- Import the minio npm package in the script being executed.
- Run
node --import @swc-node/register/esm-register script.ts
Environment:
- Node.js version: v20.11.1
- OS: Nixos
Error log:
node:internal/process/esm_loader:34
internalBinding('errors').triggerUncaughtException(
^
Error: All of the aliased extension are not found: ipaddr.js cannot be resolved in file:///home/user/github/project/node_modules/minio/dist/esm/internal/helper.mjs
at resolve (file:///home/user/github/project/node_modules/@swc-node/register/esm/esm.mjs:157:15)
at async nextResolve (node:internal/modules/esm/hooks:865:22)
at async Hooks.resolve (node:internal/modules/esm/hooks:303:24)
at async handleMessage (node:internal/modules/esm/worker:196:18)
Metadata
Metadata
Assignees
Labels
No labels