Skip to content

All of the aliased extension are not found #817

@abdulrahman1s

Description

@abdulrahman1s

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)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      pFad - Phonifier reborn

      Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

      Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


      Alternative Proxies:

      Alternative Proxy

      pFad Proxy

      pFad v3 Proxy

      pFad v4 Proxy