catdadcode / angular-spinners

A library for easily managing loading spinners in complex Angular2+ applications.
MIT License
140 stars 49 forks source link

Compiler Error on Angular 5.1.3 #31

Open tn0 opened 6 years ago

tn0 commented 6 years ago

I have include your module in my project like descripted. When I try to run

run build --aot

I get the error

ERROR in @chevtek/angular-spinners/src/spinner.module.ts(6,2): Error during template compile of 'SpinnerModule' Function calls are not supported in decorators in 'NgModule' 'NgModule' calls a function at @angular/core/core.ts(194,50).

My versions are

Angular: 5.1.3
... animations, common, compiler, compiler-cli, core, forms
... language-service, platform-browser, platform-browser-dynamic
... router

@angular/cli: 1.6.3
@angular-devkit/build-optimizer: 0.0.36
@angular-devkit/core: 0.0.22
@angular-devkit/schematics: 0.0.42
@ngtools/json-schema: 1.1.0
@ngtools/webpack: 1.9.3
@schematics/angular: 0.1.11
@schematics/schematics: 0.0.11
typescript: 2.5.3
webpack: 3.10.0
leandro-cervelin commented 6 years ago

@tn0 hi! did you fix that?