-
-
Notifications
You must be signed in to change notification settings - Fork 27k
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Failed to import mqtt module after upgrading react-scripts to 0.4.1 #587
Comments
I can’t reproduce this on master. I’m going to release 0.4.2 today. |
Ok then, I'll re-open this issue if I still have the same problem with 0.4.2. Thanks! |
I still have the same issue with 0.4.2, here's the project repo: https://github.com/alwint3r/reweather. You can checkout to 0.4.2 branch on that repo to check the error, since the master branch uses 0.3.1 and everything works fine. The file that causes the error is |
I can't reproduce this on the 0.4.2 branch of that repo. |
I also can’t reproduce this on 0.6.0 branch of that repo. Thanks! |
I did remove the By the way, I am going to try another alternatives since |
I had the same problems with npm@2. The problem disappears with npm@3. |
@aronwoost I also have npm v3 installed. What version of node are you using? I wonder if it's because I'm still using node v4. |
node: v4.5.0 |
Try clearing
|
@aronwoost mine is exactly the same as yours. |
This is super weird.
Does it have a stack trace? |
Here's line 172 - 174 in browser.js
I don't know where The stacktrace points to a file where I included |
browser.js is here: https://github.com/defunctzombie/node-process |
Also last comment here: webpack/webpack#798 But it all made no sense to me... |
I noticed the same problem with my colleague, that uses Ubuntu, node 6.6.0 and npm 3.10.7. On windows this app runs without any problems. |
Oh yes, I'm also using ubuntu 14.04 with node v4.5.0 and npm 3.10.6. Thank you for the hint @themre! I'll get back to this issue ASAP. |
Hi! Sorry for late response. I can not find both |
I'm having the same problem. Clean fresh create-react-app app and just import mqtt, I'm not even using it. |
Great! I had no idea why this issue happens because there was no compile error. Thank you for your effort! You people are awesome! |
Yea, sorry it was confusing. |
I didn't realize that there was no I'm glad that this issue is finally closed. |
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
frombrowser.js
at line 173.Removing the
import mqtt from 'mqtt'
orrequire('mqtt')
solve the issue, but that's not what I wanted. Any help would be appreciated. Thanks in advance!The text was updated successfully, but these errors were encountered: