aws-mqtt-client
aws-mqtt-client copied to clipboard
Getting "TypeError: AWSMqtt is not a constructor"
Hi,
When I try to run my code, I get the following error:

Here is the source code:

Thanks for the help!
I had the same issue while using it on a NodeJs app.
const AWSMqtt = require("aws-mqtt-client")?.default;
worked for me