Skip to content
New issue

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

All of the aliased extension are not found #817

Closed
abdulrahman1s opened this issue Jul 14, 2024 · 0 comments · Fixed by #824
Closed

All of the aliased extension are not found #817

abdulrahman1s opened this issue Jul 14, 2024 · 0 comments · Fixed by #824

Comments

@abdulrahman1s
Copy link

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:

  1. Import the minio npm package in the script being executed.
  2. 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)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging a pull request may close this issue.

1 participant