-
Notifications
You must be signed in to change notification settings - Fork 1.4k
"connect" is not exported by "mqtt.js" #1864
Answered
by
robertsLando
123TianQiang
asked this question in
Q&A
-
For title,I use mqtt for vue3,the console show "connect" is not exported by "mqtt.js", imported by XXX,what should I do???
Beta Was this translation helpful? Give feedback.
All reactions
Answered by
robertsLando
May 13, 2024
When used on browser you should use import mqtt from 'mqtt'
then use mqtt.connect
Replies: 1 comment
-
When used on browser you should use import mqtt from 'mqtt'
then use mqtt.connect
Beta Was this translation helpful? Give feedback.
All reactions
0 replies
Answer selected by
robertsLando
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment