"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.
Answered by
robertsLando
May 13, 2024
Replies: 1 comment
-
When used on browser you should use |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
robertsLando
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
When used on browser you should use
import mqtt from 'mqtt'
then usemqtt.connect