-
Notifications
You must be signed in to change notification settings - Fork 5.1k
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
Node 12 support #2913
Comments
Thanks for opening this issue! We have already discussed this issue and @alcuadrado opened the PR's for the scrypt.js package. The goal would be to have this fix included in the next release. |
Why not remove the package altogether and use something else? |
There are several ways to solve it:
The fix for this issue will be released with |
Really? Why? This is the most important thing for web3? I think it is okay not to support node 12 for the time being... |
@levino angular 8 depends on node 12. And is one of the most used frameworks out there. |
Angular apps run in the browser, so not in node. Maybe the angular build tools depend on node 12 but then just use the minified browser version of web3 for your project and you should be fine... |
Just to correct that statement here, current web3 can run on angular 8 fine using the standard NPM install and not the minified browser version we have it all working with no problems. Angular for all versions including 8 only recommends the latest stable node release it does work and supports node 10 and will even run on node 8. If angular forced something like that it would be so much disruption for companies that would then need to upgrade all of their build servers with Node 12 before thinking about creating an Angular 8 project. |
For the record: I agree that this is an issue and that support for node 12 must be established rather sooner than later. I was merely saying that there are workarounds and imo nobody needs to be blocked by this atm.
Please be reasonable. "Angular is wrong to require node 12" is surely not an argument. |
@levino angular does not require node 12! it recommends the latest version of node and runs perfectly fine on older versions, we should stop using the word require which can confuse a lot of people here. My statement was a fact in what angular actually pride themselves on not forcing people to have to change their build servers and easy upgrades. Moral of the story angular 8 does not need or require node 12 to work, so it should not be a point in this issue and i was merely just correcting the statements above to avoid huge confusion. |
I agree with you. How about you carefully read my statements first. |
👍
i did not know if you were telling me to be reasonable so was just replying to that just in case we got our wires crossed. Sorry if i have read your statement wrong reading again it still comes across like your discussing with me 😂 😄 anyway glad we just discussed that! |
@joshstevens19 yeah you are right, it doesn't depend on node 12, but they endorse it. So normally if you fresh install, you will just use what angular suggest, (also updating). Thats what happened to me. There is a workaround? Yes. After finding this errors with scrypt and node you can go and do all the workarounds you want. Also regarding that it will even work with node 8: What I'm trying to say is, that it would be nice to be able to install web3 and angular8 with the default environment angular suggest without any workarounds/investigation/errors in the console. For now we are just using a preinstall script who changes to node 8, do |
I think we've veered off topic here. With Node 12 replacing Node 11, my team has felt in a dilemma: either we use a version of node without long term support, or we face Web3 compilation issues. I think supporting the current release versions of node is, in fact, the best reason to prioritize this issue. |
Node 12 will become the Active LTS in about 3 months (!!) while Node 8 will hit EOL at the end of this year: https://nodejs.org/en/about/releases/
Proposal Add Add logic to web3 v1.0 and v2.0 that checks whether the runtime is Node and if so checks with If that's the case then use the built-in. If the runtime is Node but If the runtime is not Node then use |
Helps with web3#2913
Helps with web3#2913
Helps with web3#2913
Helps with web3#2913
Helps with web3#2913
Helps with web3#2913
web3.js uses web3-eth-accounts which uses scrypt.js which uses scrypt. Scrypt is not maintained anymore and is incompatible with node 12. I've contacted scrypt.js but i'm not sure this package is well maintained. a pull request is available on scrypt.js to fix the problem.
barrysteyn/node-scrypt#193
The text was updated successfully, but these errors were encountered: