question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Failed to import mqtt module after upgrading react-scripts to 0.4.1

See original GitHub issue

I was using mqtt module with react-scripts v0.2.3 to build some sort of IoT web app. Everything was fine until I upgraded the react-scripts to v0.4.1. There was an error from the developer console:

Uncaught Error: process.binding is not supported from browser.js at line 173.

Removing the import mqtt from 'mqtt' or require('mqtt') solve the issue, but that’s not what I wanted. Any help would be appreciated. Thanks in advance!

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:23 (8 by maintainers)

github_iconTop GitHub Comments

1reaction
alwint3rcommented, Oct 11, 2016

Hi! Sorry for late response. I can not find both superagent-xml2jsparser and xml2js. However I managed to solve the problem by running my app inside docker container. I still have no idea why the app does not work on my host machine. But I think I am happy with my current solution, so I’m gonna close this issue now. Thank you!

Read more comments on GitHub >

github_iconTop Results From Across the Web

New React app failed to compile immediatly following install
There appears to be a problem with react-scripts 4.0.2. A workaround is to change version manually to 4.0.1 on package.json then run yarn ......
Read more >
Bug List - FreeBSD Bugzilla
268488, Ports & Packages, Individual Port(s), gecko, Closed, Unable to Repro ... net-mgmt/unbound_exporter rc.d script causes failure to start when ssl ...
Read more >
[fedora-arm] arm rawhide report: 20140712 changes
... mvn(org.apache.hadoop:hadoop-hdfs) amplab-tachyon-0.4.1-2. ... Daemon and Client to run scripts when triggered from the network New ...
Read more >
npmsearchfullcat_npm143.txt - GitHub
=shiwano 2013-11-20 0.1.3 2ch 2co Module that will provide nodejs ... 0.1.0 after-brunch A micro-plugin to run commands line scripts after Brunch's…
Read more >
Web Libraries in Jars - WebJars
Coffeescript React JSX Transformer, org.webjars, coffee-react-transform ... Google Chart Tools Directive Module, org.webjars, angular-google-chart ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found