Closed
Description
Creating this issue from #405
also facing this issue with the same error on Amazon Linux 2
Error is
Oops! Something went wrong! :( ESLint: 9.16.0 Error: Failed to load native binding Occurred while linting /local/p4clients/pkgbuild-const/workspace/src/<redacted>/test/client.test.ts:1 Rule: "import/namespace" at Object.<anonymous> (/local/p4clients/pkgbuild-const/workspace/src//<redacted>/node_modules/unrs-resolver/index.js:372:11) at Module._compile (node:internal/modules/cjs/loader:1469:14) at Module._extensions..js (node:internal/modules/cjs/loader:1548:10) at Module.load (node:internal/modules/cjs/loader:1288:32) at Module._load (node:internal/modules/cjs/loader:1104:12) at Module.require (node:internal/modules/cjs/loader:1311:19) at require (node:internal/modules/helpers:179:18) at Object.<anonymous> (/local/p4clients/pkgbuild-const/<redacted>/src/<redacted>/node_modules/eslint-import-resolver-typescript/lib/index.cjs:12:20) at Module._compile (node:internal/modules/cjs/loader:1469:14) at Module._extensions..js (node:internal/modules/cjs/loader:1548:10)
Originally posted by @ckifer in #405
Info:
process.platform is linux
, x64
, isMusl
is false
nativeBinding
is always undefined, loaderErrors are:
Error: Cannot find module './resolver.linux-x64-gnu.node'
Error: Cannot find module '@unrs/resolver-binding-linux-x64-gnu'
I set NAPI_RS_FORCE_WASI
to true and then:
Error: Cannot find module '@unrs/resolver-binding-wasm32-wasi'
Error: Cannot find module './resolver.wasi.cjs'
Installing @unrs/resolver-binding-linux-x64-gnu
fixes the issue but then makes builds on MacOS fail.
Attempted to upgrade npm to 10.x and this still failed. Cannot upgrade npm further or use different package managers due to company restrictions
Metadata
Metadata
Assignees
Labels
No labels