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
ie11 this context transpilation issue #10323
Comments
On its face, if the same generated code works in one browser but not another, then it's a browser bug that should be reported to the browser project with the failure. If minification is disabled the same error would likely occur in Edge. It's possible that the Typescript compiler (or Babel 7?) is playing a role in this failure. The input provided in the first code fragment is not ECMAScript, but Typescript:
Class properties are not supported in the ES spec, nor by Terser. |
@kzc looked at the bug trackers of these projects and couldn't find sth fitting which get's me thinking it's a more meteor related issue (just assuming i'm not the first one facing the issue). Anyhow i'll report it there as well 👍.
We don't use typescript in that project and while i'm definitely no babel expert I'm pretty sure class properties are supported as babel proposal since quite some time within meteor without the need to adjust the usual meteor babel config(never used meteor without them and never installed the class property proposal manually as far as i can remember). |
This is the root cause of the problem: babel/babel#9020 |
They just fixed it on the version Babel 7.2.1 |
as @edurenye sais - it's fixed with babel 7.2.1 |
Disclaimer: I'm not sure if this issue was better suited at terser-js or an edge issue tracker - posting it here as i faced it on meteor.
We've a react component which helps us caching method results(stripped out the interesting parts):
which produces:
On ie edge 16/17 this somehow leads to "this" not being defined inside fetch - on chrome it works.
With the following diff
a slightly different code is generated which works on ieEdge
Facing this issue in meteor 1.8.0
The text was updated successfully, but these errors were encountered: