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

Could not locate the bindings file node_expat.node [BUG] #222

Open
ankitmishra88 opened this issue Jun 22, 2023 · 0 comments
Open

Could not locate the bindings file node_expat.node [BUG] #222

ankitmishra88 opened this issue Jun 22, 2023 · 0 comments

Comments

@ankitmishra88
Copy link

I am using sst (Serverless stack) for my project. When I try to do

  var expat = require('node-expat')
  var parser = new expat.Parser('UTF-8')

It was working fine as long I was using node 14.17.0, but now I upgraded to node 16.14.0

it throws following error:

Error: Could not locate the bindings file. Tried:
 → /Users/ankitkumar/projects/crewfare-monorepo/node_modules/@serverless-stack/aws-lambda-ric/build/node_expat.node
 → /Users/ankitkumar/projects/crewfare-monorepo/node_modules/@serverless-stack/aws-lambda-ric/build/Debug/node_expat.node
 → /Users/ankitkumar/projects/crewfare-monorepo/node_modules/@serverless-stack/aws-lambda-ric/build/Release/node_expat.node
 → /Users/ankitkumar/projects/crewfare-monorepo/node_modules/@serverless-stack/aws-lambda-ric/out/Debug/node_expat.node
 → /Users/ankitkumar/projects/crewfare-monorepo/node_modules/@serverless-stack/aws-lambda-ric/Debug/node_expat.node
 → /Users/ankitkumar/projects/crewfare-monorepo/node_modules/@serverless-stack/aws-lambda-ric/out/Release/node_expat.node
 → /Users/ankitkumar/projects/crewfare-monorepo/node_modules/@serverless-stack/aws-lambda-ric/Release/node_expat.node
 → /Users/ankitkumar/projects/crewfare-monorepo/node_modules/@serverless-stack/aws-lambda-ric/build/default/node_expat.node
 → /Users/ankitkumar/projects/crewfare-monorepo/node_modules/@serverless-stack/aws-lambda-ric/compiled/16.14.0/darwin/arm64/node_expat.node
 → /Users/ankitkumar/projects/crewfare-monorepo/node_modules/@serverless-stack/aws-lambda-ric/addon-build/release/install-root/node_expat.node
 → /Users/ankitkumar/projects/crewfare-monorepo/node_modules/@serverless-stack/aws-lambda-ric/addon-build/debug/install-root/node_expat.node
 → /Users/ankitkumar/projects/crewfare-monorepo/node_modules/@serverless-stack/aws-lambda-ric/addon-build/default/install-root/node_expat.node
 → /Users/ankitkumar/projects/crewfare-monorepo/node_modules/@serverless-stack/aws-lambda-ric/lib/binding/node-v93-darwin-arm64/node_expat.node
    at bindings (/Users/ankitkumar/projects/crewfare-monorepo/node_modules/bindings/bindings.js:126:9)
    at node_modules/node-expat/lib/node-expat.js (/Users/ankitkumar/projects/crewfare-monorepo/node_modules/node-expat/lib/node-expat.js:4:15)
    at __require (/Users/ankitkumar/projects/crewfare-monorepo/.sst/artifacts/cf-ankit-admin-tixr-2-crew-fare-crew-fare-route3-stack-Lambda_POST_-amadeus-lib-test/packages/apps/server/services/amadeus/testLib.js:8:50)
    at testLib (/Users/ankitkumar/projects/crewfare-monorepo/packages/apps/server/services/amadeus/testLib.ts:14:15)
    at Runtime.handler (/Users/ankitkumar/projects/crewfare-monorepo/packages/apps/server/lib/handlers/handler.ts:13:28)
    at Runtime.handleOnce (file:///Users/ankitkumar/projects/crewfare-monorepo/node_modules/@serverless-stack/aws-lambda-ric/src/Runtime/Runtime.ts:77:27)
    at processTicksAndRejections (node:internal/process/task_queues:96:5) {
  tries: [
    '/Users/ankitkumar/projects/crewfare-monorepo/node_modules/@serverless-stack/aws-lambda-ric/build/node_expat.node',
    '/Users/ankitkumar/projects/crewfare-monorepo/node_modules/@serverless-stack/aws-lambda-ric/build/Debug/node_expat.node',
    '/Users/ankitkumar/projects/crewfare-monorepo/node_modules/@serverless-stack/aws-lambda-ric/build/Release/node_expat.node',
    '/Users/ankitkumar/projects/crewfare-monorepo/node_modules/@serverless-stack/aws-lambda-ric/out/Debug/node_expat.node',
    '/Users/ankitkumar/projects/crewfare-monorepo/node_modules/@serverless-stack/aws-lambda-ric/Debug/node_expat.node',
    '/Users/ankitkumar/projects/crewfare-monorepo/node_modules/@serverless-stack/aws-lambda-ric/out/Release/node_expat.node',
    '/Users/ankitkumar/projects/crewfare-monorepo/node_modules/@serverless-stack/aws-lambda-ric/Release/node_expat.node',
    '/Users/ankitkumar/projects/crewfare-monorepo/node_modules/@serverless-stack/aws-lambda-ric/build/default/node_expat.node',
    '/Users/ankitkumar/projects/crewfare-monorepo/node_modules/@serverless-stack/aws-lambda-ric/compiled/16.14.0/darwin/arm64/node_expat.node',
    '/Users/ankitkumar/projects/crewfare-monorepo/node_modules/@serverless-stack/aws-lambda-ric/addon-build/release/install-root/node_expat.node',
    '/Users/ankitkumar/projects/crewfare-monorepo/node_modules/@serverless-stack/aws-lambda-ric/addon-build/debug/install-root/node_expat.node',
    '/Users/ankitkumar/projects/crewfare-monorepo/node_modules/@serverless-stack/aws-lambda-ric/addon-build/default/install-root/node_expat.node',
    '/Users/ankitkumar/projects/crewfare-monorepo/node_modules/@serverless-stack/aws-lambda-ric/lib/binding/node-v93-darwin-arm64/node_expat.node'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant