ng2-breadcrumb: AoT compilation raises error
I’m trying to implement AoT compilation but I’m getting error:
Error: Unexpected value 'Ng2BreadcrumbModule' imported by the module 'SharedModule'
at /home/guskis/Projects/web/node_modules/@angular/compiler/bundles/compiler.umd.js:12304:33
at Array.forEach (native)
at CompileMetadataResolver._loadNgModuleMetadata (/home/guskis/Projects/web/node_modules/@angular/compiler/bundles/compiler.umd.js:12289:51)
at CompileMetadataResolver.getUnloadedNgModuleMetadata (/home/guskis/Projects/web/node_modules/@angular/compiler/bundles/compiler.umd.js:12265:23)
at addNgModule (/home/guskis/Projects/web/node_modules/@angular/compiler/bundles/compiler.umd.js:17275:43)
at /home/guskis/Projects/web/node_modules/@angular/compiler/bundles/compiler.umd.js:17286:16
at Array.forEach (native)
at _createNgModules (/home/guskis/Projects/web/node_modules/@angular/compiler/bundles/compiler.umd.js:17285:28)
at analyzeNgModules (/home/guskis/Projects/web/node_modules/@angular/compiler/bundles/compiler.umd.js:17182:16)
at analyzeAndValidateNgModules (/home/guskis/Projects/web/node_modules/@angular/compiler/bundles/compiler.umd.js:17186:20)
Compilation failed
Shared module:
@NgModule({
imports: [
Ng2BreadcrumbModule,
// ...
],
exports: [
Ng2BreadcrumbModule,
// ...
],
providers: [
BreadcrumbService,
// ...
]
})
About this issue
- Original URL
- State: open
- Created 8 years ago
- Comments: 22 (4 by maintainers)
Any idea when this can be resolved by? Trying to run this with angular 2.4.1 and it won’t compile due to the following error:
ERROR in Error encountered resolving symbol values statically. Calling function 'makeDecorator', function calls are not supported. Consider replacing the function or lambda with a reference to an exported function, resolving symbol NgModule in /node_modules/ng2-breadcrumb/node_modules/@angular/core/src/metadata/ng_module.d.tsI’m working with @angular/compiler 2.4.10 and ng2-breadcrumb@0.5.8. When I try to compile with AOT I get nearly the same error message as stated above. But in my case the resolving Symbol is not MgModule but Injectable. Anybody able to help me with this?
Error encountered resolving symbol values statically. Calling function 'ɵmakeDecorator', function calls are not supported. Consider replacing the function or lambda with a reference to an exported function, resolving symbol Injectable in client-app/node_modules/ng2-breadcrumb/node_modules/@angular/core/core.d.tsNope, can’t compile it 😦