Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
sergcamc13 opened this issue Jan 18, 2018 · 6 comments

Comments

@sergcamc13
Copy link

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
Copy link

sdornan commented Jan 23, 2018

+1

1 similar comment
@lopermo
Copy link

lopermo commented Jan 29, 2018

+1

@Mojo1
Copy link

Mojo1 commented Feb 6, 2018

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
Copy link

talynone commented Mar 5, 2018

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
Copy link

+1

1 similar comment
@a-p-co
Copy link

a-p-co commented Apr 24, 2018

+1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants