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
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)
The text was updated successfully, but these errors were encountered:
Description:
When running node with
@swc-node/register/esm-register
, a "Module not found" error occurs. The error message indicates that the moduleipaddr.js
could not be resolved in the filehelper.mjs
located in the@swc-node/register
package.Steps to reproduce:
node --import @swc-node/register/esm-register script.ts
Environment:
Error log:
The text was updated successfully, but these errors were encountered: