-
Notifications
You must be signed in to change notification settings - Fork 1.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
When importing MQTT to a Vue3 project, I get the following error: #1596
Comments
import mqtt from 'mqtt/dist/mqtt'; 尝试这样 |
哇哦 立马就解决了 太厉害了哥 折腾了一晚上 非常感谢 |
强啊,我拷打了 gpt 一天,没给我解决 |
MQTT 5.0.0 BETA is now available! Try it out and give us feedback: |
5.0.0还是用不了,用你们的方法都不行,降到4.3.7版本用你们的方法才行,搞死我了 |
You must add a Polyfill for Buffer because Vite does not automatially polyfill nodejs builtins. @SpaceZL What I usually do when I use Vite in a project is:
Also if there are other solutions, I am curious to see them. |
I have fixed Browser docs by adding webpack and vite setup. Check them out |
我也是 |
English please... |
I tried to
but it didn't work
thank you very much.
The text was updated successfully, but these errors were encountered: