angular-spinners icon indicating copy to clipboard operation
angular-spinners copied to clipboard

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

Open sergcamc13 opened this issue 8 years ago • 6 comments

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

sergcamc13 avatar Jan 18 '18 15:01 sergcamc13

+1

sdornan avatar Jan 23 '18 16:01 sdornan

+1

lopermo avatar Jan 29 '18 15:01 lopermo

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

Mojo1 avatar Feb 06 '18 10:02 Mojo1

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", ]

talynone avatar Mar 05 '18 17:03 talynone

+1

CrazyBaran avatar Mar 13 '18 10:03 CrazyBaran

+1

a-p-co avatar Apr 24 '18 11:04 a-p-co