components: Alpha 9 AoT compiler error
Hey guys,
- I updated to the new Alpha 9, upgraded to the single Material Module. So far, things work great in development.
BUT: running the AoT compiler results in errors: (compiler-cli 0.6.2):
Error: parameters received {"filePath":"/Users/lrj/projects/angular2-webpack2-typescript2/node_modules/@angular/material/core/a11y/live-announcer.d.ts","name":"MdLiveAnnouncer"} which is not a StaticSymbol
at StaticReflector.parameters (/Users/lrj/projects/angular2-webpack2-typescript2/node_modules/@angular/compiler-cli/src/static_reflector.js:92:19)
at CompileMetadataResolver.getDependenciesMetadata (/Users/lrj/projects/angular2-webpack2-typescript2/node_modules/@angular/compiler/bundles/compiler.umd.js:14336:81)
at CompileMetadataResolver.getTypeMetadata (/Users/lrj/projects/angular2-webpack2-typescript2/node_modules/@angular/compiler/bundles/compiler.umd.js:14301:28)
at /Users/lrj/projects/angular2-webpack2-typescript2/node_modules/@angular/compiler/bundles/compiler.umd.js:14448:43
at Array.forEach (native)
at CompileMetadataResolver.getProvidersMetadata (/Users/lrj/projects/angular2-webpack2-typescript2/node_modules/@angular/compiler/bundles/compiler.umd.js:14428:21)
at /Users/lrj/projects/angular2-webpack2-typescript2/node_modules/@angular/compiler/bundles/compiler.umd.js:14435:43
at Array.forEach (native)
at CompileMetadataResolver.getProvidersMetadata (/Users/lrj/projects/angular2-webpack2-typescript2/node_modules/@angular/compiler/bundles/compiler.umd.js:14428:21)
at /Users/lrj/projects/angular2-webpack2-typescript2/node_modules/@angular/compiler/bundles/compiler.umd.js:14120:73
Compilation failed
Anyone stumbled across this?
About this issue
- Original URL
- State: closed
- Created 8 years ago
- Reactions: 6
- Comments: 15 (4 by maintainers)
I’m unable to compile aswell. Appears to be a similar issue to @szechyjs.
using these angular modules
And this
ng cli
versionI just tried alpha.9-3 and got the following error from
ng build -aot
Just published alpha.9-3, which should resolve this.
I can reproduce this and am trying to figure out what’s wrong. AFAICT,
MdLiveAnnouncer
isn’t doing anything weird, so it’s not clear where the problem lives.Same error for me. It would be nice to have AOT compile validation as a part of build if it not already there.