Closed
Description
Describe the bug
I facing an issue while installing the aws-iot-device-sdk-v2
package. After importing iot
and mqtt
, I attempt to run the Next.js app using npm run dev
but encounter the below errors
Error: AWS CRT binary not present in any of the following locations:
/bin/darwin-arm64-cruntime/aws-crt-nodejs.node
at eval (webpack-internal:///./node_modules/aws-crt/dist/native/binding.js:110:11)
- error node_modules/aws-crt/dist/native/binding.js (109:0) @ eval
- error Error: AWS CRT binary not present in any of the following locations:
/bin/darwin-arm64-cruntime/aws-crt-nodejs.node
at eval (webpack-internal:///./node_modules/aws-crt/dist/native/binding.js:110:11)
Expected Behavior
After importing iot
and 'mqttfrom
aws-iot-device-sdk-v2` the nextjs app running as we expect normally
Current Behavior
Currently, it's throwing the below error we can import { it, mqtt } from 'aws-iot-device-sdk-v2'
on the Nextjs app component and run on it.
Error: AWS CRT binary not present in any of the following locations:
/bin/darwin-arm64-cruntime/aws-crt-nodejs.node
at eval (webpack-internal:///./node_modules/aws-crt/dist/native/binding.js:110:11)
- error node_modules/aws-crt/dist/native/binding.js (109:0) @ eval
- error Error: AWS CRT binary not present in any of the following locations:
/bin/darwin-arm64-cruntime/aws-crt-nodejs.node
at eval (webpack-internal:///./node_modules/aws-crt/dist/native/binding.js:110:11)
Reproduction Steps
- Install
aws-iot-device-sdk-v2
on the Nextjs app. - import
iot
andmqtt
from'aws-iot-device-sdk-v2
andiot
andmqtt
APIs are used on the Nextjs app component. - run
npm run dev
on terminal - the above-mentioned mention error throwing on the terminal
Possible Solution
No response
Additional Information/Context
No response
SDK version used
1.19.5
Environment details (OS name and version, etc.)
| Environment | version |
| macOS | 14.4.1 |
| processer | m1 chip |
| node 20.12.1 |
| nextjs | 13.4.7 |
Activity