catdadcode / angular-spinners

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

Uncaught Error: Unexpected value 'SpinnerModule' imported by the module 'AppModule'. Please add a @NgModule annotation. #32

Open sergcamc13 opened 6 years ago

sergcamc13 commented 6 years ago

I am following all the steps specified in the README file This library works with Angular 5.2.0?

Below my environment: Angular CLI: 1.6.4 Node: 7.10.1 OS: win32 x64 Angular: 5.2.0 angular/cli: 1.6.4 angular-devkit/build-optimizer: 0.0.38 angular-devkit/core: 0.0.25 angular-devkit/schematics: 0.0.48 ngtools/json-schema: 1.1.0 ngtools/webpack: 1.9.4 schematics/angular: 0.1.13 schematics/schematics: 0.0.13 typescript: 2.6.2 webpack: 3.10.0

sdornan commented 6 years ago

+1

lopermo commented 6 years ago

+1

Mojo1 commented 6 years ago

The modul is installing its own angular 4.4.6 Version -> node_modules folder in node_modules folder. would be great if this could be removed ... After removing the folder it was working with angular 5

talynone commented 6 years ago

In addition to what @Mojo1 said, to get this to build properly in AOT / production I had to add the following to the tsconfig.json file:

"include": [ "src/*/", "node_modules/@chevtek/angular-spinners/src/spinner.module.ts", "node_modules/@chevtek/angular-spinners/src/spinner.component.ts", "node_modules/@chevtek/angular-spinners/src/spinner.service.ts", ]

CrazyBaran commented 6 years ago

+1

a-p-co commented 6 years ago

+1