You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Cannot target ES6 in Typescript (possible regression) #5973
Right now it appears that it's impossible to use angular2 directly from node_modules when typescript is targetting es6 because es6-shim.d.ts is indirectly referenced from zone.d.ts. This APPEARS to be a regression of #4882 that has happened because zone.d.ts directly references es6-shim.d.ts. This is confusing to me because zone.d.ts (in definitelytyped) has ALWAYS referenced es6-shim.d.ts and therefore this should never have worked.
The reference chain is: core.d.ts -> ./manual_typings/globals-es6.d.ts -> ../typings/zone/zone.d.ts -> ../es6-shim/es6-shim.d.ts
Is the best current work around with 2.0.0-beta.1 going into node_modules/angular2 and making changes to .d.ts files? I haven't found anything else that works.
Activity
alexeagle commentedon Jan 10, 2016
Yes, the zone.d.ts shipping with angular2 (I tried beta.1) has
es6-shimdependency (https://github.com/angular/DefinitelyTyped/blob/master/zone/zone.d.ts). The one on DefinitelyTyped has anes6-promisedependency (https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/zone.js/zone.js.d.ts#L6)Note, I have a PR to remove our fork, which might solve this problem
#6267
DanielJoyce commentedon Jan 14, 2016
Bumping into this bug as well. Still encountering in angular2 2.0.0-beta.1
kalahari commentedon Jan 16, 2016
Is the best current work around with 2.0.0-beta.1 going into
node_modules/angular2and making changes to.d.tsfiles? I haven't found anything else that works.angular-automatic-lock-bot commentedon Sep 7, 2019
This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.
Read more about our automatic conversation locking policy.
This action has been performed automatically by a bot.