-
Notifications
You must be signed in to change notification settings - Fork 57
Uncaught Error: Unexpected value 'ArithmeticModule' imported by the module 'AppModule'. Please add a @NgModule annotation #15
Comments
Maybe you got something wrong with the versions: angular/angular#15763 |
I really appreciate for your reply. |
|
thank you very much!!! |
Hi @robisim74 , |
Uh oh!
There was an error while loading. Please reload this page.
In angular4.2.4, getting this error
when running npm start (ng server), the building process is ok, but getting this error in the browser
my app.module.ts
import {ArithmeticModule} from 'angular-library-starter';
@NgModule({
declarations: [
AppComponent, HelloComponent
],
imports: [
BrowserModule, routing, ArithmeticModule.forRoot()
],
providers: [],
bootstrap: [AppComponent]
})
export class AppModule { }
error stack from browser
Uncaught Error: Unexpected value 'ArithmeticModule' imported by the module 'AppModule'. Please add a @NgModule annotation.
at syntaxError (http://localhost:4200/vendor.bundle.js:19702:34)
at http://localhost:4200/vendor.bundle.js:33386:44
at Array.forEach (native)
at CompileMetadataResolver.webpackJsonp.../../../compiler/@angular/compiler.es5.js.CompileMetadataResolver.getNgModuleMetadata (http://localhost:4200/vendor.bundle.js:33369:49)
at JitCompiler.webpackJsonp.../../../compiler/@angular/compiler.es5.js.JitCompiler.loadModules (http://localhost:4200/vendor.bundle.js:44692:70)
at JitCompiler.webpackJsonp.../../../compiler/@angular/compiler.es5.js.JitCompiler.compileModuleAndComponents (http://localhost:4200/vendor.bundle.js:44665:36)
at JitCompiler.webpackJsonp.../../../compiler/@angular/compiler.es5.js.JitCompiler.compileModuleAsync (http://localhost:4200/vendor.bundle.js:44594:37)
at PlatformRef.webpackJsonp.../../../core/@angular/core.es5.js.PlatformRef.bootstrapModuleWithZone (http://localhost:4200/vendor.bundle.js:50335:25)
at PlatformRef.webpackJsonp.../../../core/@angular/core.es5.js.PlatformRef_.bootstrapModule (http://localhost:4200/vendor.bundle.js:50321:21)
at Object.../../../../../src/main.ts (http://localhost:4200/main.bundle.js:17877:124)
The text was updated successfully, but these errors were encountered: