ES2015 + emitDecoratorMetadata causes Cannot access before intialization #15077
Labels
area: @ngtools/webpack
freq1: low
Only reported by a handful of users who observe it rarely
severity5: regression
type: bug/fix
Milestone
🐞 bug report
Affected Package
@angular/compiler
Is this a regression?
No, but this is more relevant now because angular-cli permits ES2015 targets.
Description
When targeting ES2015, emitDecoratorMetadata causes a ReferenceError.
🔬 Minimal Reproduction
https://github.com/pauldraper/angular-decorator-metadata
Load in browser.
🔥 Exception or Error
🌍 Your Environment
Angular Version:
Angular 8.1.1
Anything else relevant?
Removing emitDecoratorMetadata, or targeting es5 fixes the problem.
The text was updated successfully, but these errors were encountered: