-
Notifications
You must be signed in to change notification settings - Fork 5k
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
Build fails with web3@1.0.0-beta.52 on Heroku #2749
Comments
Well, I'm working on my branch web3beta52 and there was a UglifyJs error. So I replaced inbuilt UglifyJs with a package babili-webpack-plugin. It solved that error, but this is the next error. (I mean english next not nextjs). A dependency 'websocket' in 'web3-providers-ws' seems to be having .git file according to this error in the build log on Heroku.
|
Thanks for opening this issue and for providing all these detailed information! |
Hi @nivida, I was experimenting with one thing. I was using web3@1.0.0-beta.37 and web3-providers@1.0.0-beta.53. I wanted to use 1.0.0-beta.53's provider as it works for me (issue 2071) and 1.0.0-beta.37 as it is not causing the build to fail. But it is giving an error UnhandledPromiseRejectionWarning. I saw by console logging that the HttpProvider output was slightly different in both versions. Just wanted to ask if are these both versions incompatible with each other? Also, what can we do to make the build succeed (I don't want to use the old version because the new provider is better)? |
Thanks for the answer!:)
The version beta.37 does not support the providers from version beta.53. The solution would be to upgrade to the latest version. |
I wonder why does the building work locally and fails at Heroku, it's very weird and unexpected behaviour. I'm having pretty much the same issue, i'll play with the version and see what happens, i'm pretty sure the version of node.js used might be one of the important variables here as i'm sure i'm running the same version that is fail to compile on Heroku now on an older Heroku dyno that is likely to be running an older version of node or npm. |
How did you make your deployment work? |
check out this. sounds very cool |
Description
I was using web3@1.0.0-beta.37 in my project, deployed it on Heroku. It was fine except this exact issue 2071. My dApp worked fine on Chrome but seemed to not work on other browsers. This issue was fixed in PR #2564. I needed to upgrade to web3@1.0.0-beta.52 to solve my issue.
I created a new branch and upgraded to the latest web3 version. I went through the Big Number debugging successfully and making my dApp running locally fine. But when I attempted to deploy it on Heroku, the build failed. The only difference between the two branches is web3 versions (beta.37 successfully builds but beta.52 fails). I did not use any other package for Big Number issue, simply updated few lines of oldCode with web3.utils.toBN( oldCode ).toString() method.
Branch master with web3@1.0.0-beta.37
works fine locally, build succeeds on Heroku, iOS issue
Branch web3beta52onceAgain with web3@1.0.0-beta.52
works fine locally, build fails on Heroku, iOS issue fixed
Expected behavior
I expect my project to work on iOS and other non-chrome browsers (2071 issue).
Actual behavior
With web3@1.0.0-beta.37 it only works on chrome.
With web3@1.0.0-beta.52 it does work as expected locally but it doesn't successfully build on Heroku.
Steps to reproduce the behavior
Pushing to heroku remote will auto deploy it. You can login to heroku.com on browser to see the build error logs or you can manually deploy it there (also you will need to create an account (no credit card) if you don't have). (I'm pasting the error below).
Error Logs
This is the build log for branch web3beta52onceAgain.
I have tried removing node_modules from source control. Specified node and npm version in package.json in branch web3beta52. But it led to even more nasty errors!
Gists
https://github.com/zemse/kickchainer/tree/master/ethereum
Contains:
Versions
The text was updated successfully, but these errors were encountered: