ITADN

Failed to load native bindings

#452ClosedStono 创建于 2025-05-21
S
Stonocommented
Hi, We've just bumped up to `4.3.5` from `3.8.6` and our builds, only in docker, on both linux/arm64 and linux/amd64 are failing with: ``` #10 [app build 6/7] RUN ./node_modules/.bin/eslint -c eslint.config.js #10 2.082 #10 2.082 Oops! Something went wrong! :( #10 2.082 #10 2.082 ESLint: 9.27.0 #10 2.082 #10 2.082 Error: Failed to load native binding #10 2.082 Occurred while linting /usr/local/autotrader/app/lib/metrics.ts:1 #10 2.082 Rule: "import/no-deprecated" #10 2.082 at Object.<anonymous> (/usr/local/autotrader/app/node_modules/unrs-resolver/index.js:372:11) #10 2.082 at Module._compile (node:internal/modules/cjs/loader:1554:14) #10 2.082 at Object..js (node:internal/modules/cjs/loader:1706:10) #10 2.082 at Module.load (node:internal/modules/cjs/loader:1289:32) #10 2.082 at Function._load (node:internal/modules/cjs/loader:1108:12) #10 2.082 at TracingChannel.traceSync (node:diagnostics_channel:322:14) #10 2.082 at wrapModuleLoad (node:internal/modules/cjs/loader:220:24) #10 2.082 at Module.require (node:internal/modules/cjs/loader:1311:12) #10 2.082 at require (node:internal/modules/helpers:136:16) #10 2.082 at Object.<anonymous> (/usr/local/autotrader/app/node_modules/eslint-import-resolver-typescript/lib/index.cjs:8:20) #10 ERROR: process "/bin/sh -c ./node_modules/.bin/eslint -c eslint.config.js" did not complete successfully: exit code: 2 ``` Builds locally on macs (arm, darwin) work fine. I've read https://github.com/import-js/eslint-import-resolver-typescript/issues/431 and https://github.com/import-js/eslint-import-resolver-typescript/issues/405#issuecomment-2810179954 and neither of them help me (or i'm being stupid!). This is the dependency tree: ``` #8 [app build 4/7] RUN npm ls unrs-resolver @unrs/resolver-binding-linux-x64-gnu eslint-import-resolver-typescript #8 0.613 pokr@0.1.0 /usr/local/autotrader/app #8 0.613 └─┬ @at/newbitzer-dev@1.0.1342 #8 0.613 └─┬ @at/webserver-dev@3.0.1180 #8 0.613 └─┬ @at/eslint-config-infrastructure@3.0.515 #8 0.613 └─┬ eslint-import-resolver-typescript@4.3.5 #8 0.613 └── unrs-resolver@1.7.2 ``` I don't see `@unrs/resolver-binding-linux-x64-gnu` so perhaps that's what's being hinted at in another issue, with the install silently failing? I can't see any info to validate that though. Rolling back to `3.9.1` fixes it.
关闭于 2025-06-25 11 条评论