aws-mqtt-client icon indicating copy to clipboard operation
aws-mqtt-client copied to clipboard

Getting "TypeError: AWSMqtt is not a constructor"

Open nickthiru opened this issue 2 years ago • 1 comments

Hi,

When I try to run my code, I get the following error:

image

Here is the source code:

image

Thanks for the help!

nickthiru avatar Feb 26 '23 06:02 nickthiru

I had the same issue while using it on a NodeJs app.

const AWSMqtt = require("aws-mqtt-client")?.default;

worked for me

ChethiyaKD avatar Aug 25 '23 19:08 ChethiyaKD