Skip to content

Windows x64 native modules no longer load #47290

@viceice

Description

@viceice

Version

v18.15.0

Platform

Microsoft Windows NT 10.0.20348.0 x64

Subsystem

Docker v23.0.1

What steps will reproduce the bug?

try loading @swc/core-win32-x64-msvc@1.3.42

> node -e 'require("@swc/core-win32-x64-msvc")'

How often does it reproduce? Is there a required condition?

always

What is the expected behavior? Why is that the expected behavior?

should load the module like in node v18.14.2

What do you see instead?

node:internal/modules/cjs/loader:1338
  return process.dlopen(module, path.toNamespacedPath(filename));
                 ^

Error: The specified module could not be found.
\\?\C:\app\node_modules\@swc\core-win32-x64-msvc\swc.win32-x64-msvc.node
    at Module._extensions..node (node:internal/modules/cjs/loader:1338:18)
    at Module.load (node:internal/modules/cjs/loader:1117:32)
    at Module._load (node:internal/modules/cjs/loader:958:12)
    at Module.require (node:internal/modules/cjs/loader:1141:19)
    at require (node:internal/modules/cjs/helpers:110:18)
    at [eval]:1:1
    at Script.runInThisContext (node:vm:129:12)
    at Object.runInThisContext (node:vm:307:38)
    at node:internal/process/execution:79:19
    at [eval]-wrapper:6:22 {
  code: 'ERR_DLOPEN_FAILED'
}

Node.js v18.15.0

Additional information

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions