-
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
Unexpected identifier error in browserifying mqtt #417
Comments
@mayooran99 could you pleas expand the error given in the Console. Just copy-paste the stacktrace and the version of Chrome you are using. |
There is something wrong with the browserify version you are using: if(length === -1 || end > this._list.length ||Â end > this.packet.length) |
I checked this here, and I get the same output, not sure what's up to. @sandro-k can you have a look? |
@mayooran99 and @mcollina I can confirm that this is a bug in https://github.com/mqttjs/mqtt-packet/blob/master/parser.js#L355 and https://github.com/mqttjs/mqtt-packet/blob/master/parser.js#L370. Somehow a I will create a PR |
@mayooran99 thanks for reporting this. |
I can confirm when forcing |
I don't think there is a need to do a release, as we depend on mqtt-packet with the |
I need to use the mqtt client from the browser and I followed the following steps as mentioned in the doc.
And then created a html page as specified in the doc.
When I ran the commands, the browserMqtt.js got created successfully. But when I run the HTML I am getting the following error.
Is there something wrong with the library?
The text was updated successfully, but these errors were encountered: