-
Notifications
You must be signed in to change notification settings - Fork 13.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
ES6 Builds Broken by #6a5aec8 #15979
Comments
For reference, this is the commit in question. @manucorporat any thoughts on this? |
Same problem |
Still the same problem with @ionic/angular@4.0.0-beta.15-0. |
That's because the author of the commit that introduced the regression is clearly working on other, presumably more important, issues :) A quick and dirty hack that "fixes" the issue (i.e. reverts to old behavior) is to change line 32 of |
Thank you for the fix. Is the v4.0.0-beta.16 release scheduled to happen soon? It would be very helpful for users whose codebases are ES6 based to use this as soon as possible. |
@ChrisPearce Just fork this repository and build it - so you always get the newest version and do not have to wait until the next beta ;) |
@manucorporat This issue is still available in beta.16. Your fix is not working. The error is now: "TypeError: Class constructor EventEmitter cannot be invoked without 'new'" |
Is ES6/ES2015 a supported scenario for Ionic v4, or should we only be targeting ES5? Also, is it intended to support ES2016 and ES2017 (when a mobile device supports these)? |
I don't see why not, the issue is isolated to a specific area of the code base -- fix is likely trivial. |
damn. We are working in a new test app for angular and a CI that runs it in all different browsers to make sure we don't have this kind of issues anymore, thanks you all for the patience! Reopening issue |
Can confirm. es6 build is now possible :) |
Thanks for the issue! This issue is being locked to prevent comments that are not relevant to the original issue. If this is still an issue with the latest version of Ionic, please create a new issue and ensure the template is fully filled out. |
Bug Report
Ionic Info
Describe the Bug
Commit #6a5aec8 breaks ES6 targeted builds.
Steps to Reproduce
Steps to reproduce the behavior:
tsconfig.json
compile target toes6
ionic serve
Expected Behavior
ES6 targeted builds are produced successfuly.
Additional Context
Generated JS looks like:
and build blows up with "class constructors must be invoked with |new|" on this call: _super.apply(this, arguments).
The text was updated successfully, but these errors were encountered: