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
[Bug]: WeChat mini globalThis
is not defined in browser bundle
#1797
Comments
Could you try to add this to the mqttjs bundle?
|
globalThis
is not defined in browser bundle
Sorry, I don't quite understand what you mean. Could you please specify where or in which file I should add? |
@Diven-xinhai Alternatively you could also try to add that in a script tag in your index.html file |
I tried to add globalThis = globalThis || {} in index.html or mqtt.esm.js; But it didn't work. It's the same error |
The problem is that for some reason when you are running this in wechat mini |
MQTTjs Version
5.3.6
Broker
mqtt
Environment
NodeJS
Description
The latest version 5.3.6 reported an error in the wechat mini program, the error message is as follows:
TypeError: Cannot read property 'AbortController' of undefined
Minimal Reproduction
Debug logs
.
The text was updated successfully, but these errors were encountered: