Skip to content

Compiler Error on Angular 5.1.3 #31

@tn0

Description

@tn0

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions