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
$ rm -rf aot && yarn run ngc
yarn run v0.17.10
$ ngc -p tsconfig.aot.json
Error: Unexpected value 'ToasterModule' imported by the module 'AppModule'
at /Users/phil/Documents/Projects/node_modules/@angular/compiler/bundles/compiler.umd.js:17768:46
at Array.forEach (native)
at CompileMetadataResolver.getNgModuleMetadata (/Users/phil/Documents/Projects/node_modules/@angular/compiler/bundles/compiler.umd.js:17753:51)
at addNgModule (/Users/phil/Documents/Projects/node_modules/@angular/compiler/bundles/compiler.umd.js:24349:60)
at /Users/phil/Documents/Projects/node_modules/@angular/compiler/bundles/compiler.umd.js:24360:16
at Array.forEach (native)
at _createNgModules (/Users/phil/Documents/Projects/node_modules/@angular/compiler/bundles/compiler.umd.js:24359:28)
at analyzeNgModules (/Users/phil/Documents/Projects/node_modules/@angular/compiler/bundles/compiler.umd.js:24238:16)
at analyzeAndValidateNgModules (/Users/phil/Documents/Projects/node_modules/@angular/compiler/bundles/compiler.umd.js:24248:37)
at AotCompiler.compileAll (/Users/phil/Documents/Projects/node_modules/@angular/compiler/bundles/compiler.umd.js:23987:20)
Compilation failed
error Command failed with exit code 1.
@philjones88 this is a duplicate of #87 . A permanent fix is being worked on and in the meantime, you can use the workaround noted in that issue as cedric called out.
Looks to be the same as #55
I'm using:
TS 2.0.10
NG 2.3.1
Angular2-toaster 1.1.0
Mostly following the official AoT cookbook at https://angular.io/docs/ts/latest/cookbook/aot-compiler.html
The text was updated successfully, but these errors were encountered: