-
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
Version 4.x no longer compiling to es5 #3505
Comments
Chrome web store says it's compatible. |
@walkjivefly as @lazaridiscom said your browser is too old. At 2.5 years, its not just a matter of not having the latest features, I'm not confident that your browser is safe to use. If a critical vulnerability is known that affects your browser version, websites might be able to steal your private keys from MetaMask. That said, you mentioned it used to work. Its likely that with version 4.x we changed our build process and are no longer compiling es7 to es5. |
For now, you can manually install an older version.
|
Thanks for the suggestion. I tried 3.14.1 and all 3.x.0 back to 3.4.0; none of them worked. I've never used Metamask before; I think someone else reported they had in some other issue with similar symptoms. I only wanted to install it to have a look at the Origin Protocol demo dApp. Guess I won't be bothering for the time being. Changing the title won't help other people in the same situation as me find the report and see the suggested workaround. Which is a shame since it might work for them. If I ever get my machine upgraded I'll have another go. Cheers! |
But it will help us fix the issue sooner. Sorry for the hassle, have a good one! |
Looks like this was introduced here https://github.com/MetaMask/metamask-extension/pull/2975/files#diff-b9e12334e9eafd8341a6107dd98510c9L381 |
The "fix" was reverted because it broke the build process |
🤦♂️ Sorry I broke your build. Been looking at this for way too long now. Things I found:
Tapping out. 🤷♂️ |
Also: CircleCI approved my PR despite it breaking the build, we might want to update the CI to cover this step of the build process. |
Captured in #3699. |
Can anybody tell me with simple language what to do whith this problem? English is not my native language. |
@lazaridiscom thank you wery much) |
Issue Status: 1. Open 2. Started 3. Submitted 4. Done This issue now has a funding of 0.2 ETH (123.94 USD @ $619.68/ETH) attached to it.
|
@JonnyBurger Hello from Gitcoin Core - are you still working on this issue? Please submit a WIP PR or comment back within the next 3 days or you will be removed from this ticket and it will be returned to an ‘Open’ status. Please let us know if you have questions!
Funders only: Snooze warnings for 1 day | 3 days | 5 days | 10 days | 100 days |
Hi there, sorry I have to give up this as well. The build step was bundle -> minify -> transpile, which gave one big file to Babel and that is why the memory issue occured. However, it's true that is seems very hard to configure Babel to remove all So sorry for not being able to deliver. |
Thanks for the honest update @JonnyBurger and appreciate you taking a look! Have a great weekend. |
@Platinumwrist Hello from Gitcoin Core - are you still working on this issue? Please submit a WIP PR or comment back within the next 3 days or you will be removed from this ticket and it will be returned to an ‘Open’ status. Please let us know if you have questions!
Funders only: Snooze warnings for 1 day | 3 days | 5 days | 10 days | 100 days |
2 similar comments
@Platinumwrist Hello from Gitcoin Core - are you still working on this issue? Please submit a WIP PR or comment back within the next 3 days or you will be removed from this ticket and it will be returned to an ‘Open’ status. Please let us know if you have questions!
Funders only: Snooze warnings for 1 day | 3 days | 5 days | 10 days | 100 days |
@Platinumwrist Hello from Gitcoin Core - are you still working on this issue? Please submit a WIP PR or comment back within the next 3 days or you will be removed from this ticket and it will be returned to an ‘Open’ status. Please let us know if you have questions!
Funders only: Snooze warnings for 1 day | 3 days | 5 days | 10 days | 100 days |
I'm not 100% sure, but at a glance, I think Babel is not setup to transpile const and let, but traceur could do this for you. It doesn't seem like it would make sense to introduce that into the actual codebase to solve this problem just for really old legacy browsers. But if some folks really needed to find a work around, I suppose they could filter the js through traceur and shim it back in, maybe through a fork of the project or something.. edit: It looks like this might work in theory babel plugin transform-es2015-block-scoping. |
@rafaelboyero Hello from Gitcoin Core - are you still working on this issue? Please submit a WIP PR or comment back within the next 3 days or you will be removed from this ticket and it will be returned to an ‘Open’ status. Please let us know if you have questions!
Funders only: Snooze warnings for 1 day | 3 days | 5 days | 10 days | 100 days |
Babel can transpile const and let for sure, you just need to set the right target. It will even add |
Issue Status: 1. Open 2. Started 3. Submitted 4. Done Work has been started. These users each claimed they can complete the work by 8 months, 1 week ago. 1) ajnauleau has started work. Utilize Babel for JavaScript compatibility and transpilation
Install babel dependencies by running npm install babel-cli -D Create a .babelrc file inside your project and add the following code inside it: { Add the following script to your scripts object in package.json: "build": "babel src -d lib" Learn more on the Gitcoin Issue Details page. |
Looking to be a bit more difficult than I expected, getting errors building gulp at mascara with babel "env"-- will keep posted. |
*Fixed, updated to babel-preset-env, just had to change the order of presets to "env", "react", "stage-0"-- now builds. |
Issue Status: 1. Open 2. Started 3. Submitted 4. Done Work for 0.2 ETH (95.15 USD @ $475.76/ETH) has been submitted by: @vs77bb please take a look at the submitted work:
|
Issue Status: 1. Open 2. Started 3. Submitted 4. Done The funding of 0.2 ETH (53.15 USD @ $265.77/ETH) attached to this issue has been approved & issued to @ajnauleau.
|
@bdresser , it looks like this one can be closed. |
Expected behaviour: not a blank window. I don't know what it should look like, never used it before.
Actual behaviour: blank window.
Metamask version: 4.2.0
Browser: Chrome Version 46.0.2490.71 (yes, very old, but it's the latest version I can run on this particular machine).
OS: Linux SolydK 201412 (bastardised Debian Wheezy/Jessie hybrid)
Popup log says:
And background log says:
These logs don't match any of the other "blank window" reports.
The text was updated successfully, but these errors were encountered: