Failed to import mqtt module after upgrading react-scripts to 0.4.1
See original GitHub issueI 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:
- Created 7 years ago
- Comments:23 (8 by maintainers)
Top 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 >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
This is the same issue as https://github.com/facebookincubator/create-react-app/issues/1023 and https://github.com/facebookincubator/create-react-app/issues/815. It was fixed by https://github.com/facebookincubator/create-react-app/pull/1194 and 0.8.2 contains this fix.
Hi! Sorry for late response. I can not find both
superagent-xml2jsparser
andxml2js
. 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!