Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

"connect" is not exported by "mqtt.js" #1864

Answered by robertsLando
123TianQiang asked this question in Q&A
Discussion options

For title,I use mqtt for vue3,the console show "connect" is not exported by "mqtt.js", imported by XXX,what should I do???

You must be logged in to vote

When used on browser you should use import mqtt from 'mqtt' then use mqtt.connect

Replies: 1 comment

Comment options

When used on browser you should use import mqtt from 'mqtt' then use mqtt.connect

You must be logged in to vote
0 replies
Answer selected by robertsLando
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet

AltStyle によって変換されたページ (->オリジナル) /