Unexpected value 'RoundProgressModule' imported by the module 'HomePageModule'. Please add a @NgModule annotation
See original GitHub issueThis is the error on Ionic 3
project.
This is the project on git: https://github.com/Sampath-Lokuge/svgapp
ERROR Error: Uncaught (in promise): Error: Unexpected value 'RoundProgressModule' imported by the module 'HomePageModule'. Please add a @NgModule annotation.
Error: Unexpected value 'RoundProgressModule' imported by the module 'HomePageModule'. Please add a @NgModule annotation.
at syntaxError (vendor.js:78267)
at vendor.js:92120
at Array.forEach (<anonymous>)
at CompileMetadataResolver.getNgModuleMetadata (vendor.js:92103)
at JitCompiler._loadModules (vendor.js:103538)
at JitCompiler._compileModuleAndComponents (vendor.js:103511)
at JitCompiler.compileModuleAsync (vendor.js:103440)
at ModuleBoundCompiler.compileModuleAsync (vendor.js:103840)
at vendor.js:66692
at t.invoke (polyfills.js:3)
at syntaxError (vendor.js:78267)
at vendor.js:92120
at Array.forEach (<anonymous>)
at CompileMetadataResolver.getNgModuleMetadata (vendor.js:92103)
at JitCompiler._loadModules (vendor.js:103538)
at JitCompiler._compileModuleAndComponents (vendor.js:103511)
at JitCompiler.compileModuleAsync (vendor.js:103440)
at ModuleBoundCompiler.compileModuleAsync (vendor.js:103840)
at vendor.js:66692
at t.invoke (polyfills.js:3)
at c (polyfills.js:3)
at Object.reject (polyfills.js:3)
at NavControllerBase._fireError (vendor.js:43938)
at NavControllerBase._failed (vendor.js:43926)
at vendor.js:43981
at t.invoke (polyfills.js:3)
at Object.onInvoke (vendor.js:4248)
at t.invoke (polyfills.js:3)
at r.run (polyfills.js:3)
at polyfills.js:3
package.json
{
"name": "SvgApp",
"version": "0.0.1",
"author": "Ionic Framework",
"homepage": "http://ionicframework.com/",
"private": true,
"scripts": {
"clean": "ionic-app-scripts clean",
"build": "ionic-app-scripts build",
"lint": "ionic-app-scripts lint",
"ionic:build": "ionic-app-scripts build",
"ionic:serve": "ionic-app-scripts serve"
},
"dependencies": {
"@angular/common": "4.4.4",
"@angular/compiler": "4.4.4",
"@angular/compiler-cli": "4.4.4",
"@angular/core": "4.4.4",
"@angular/forms": "4.4.4",
"@angular/http": "4.4.4",
"@angular/platform-browser": "4.4.4",
"@angular/platform-browser-dynamic": "4.4.4",
"@ionic-native/core": "4.3.2",
"@ionic-native/splash-screen": "4.3.2",
"@ionic-native/status-bar": "4.3.2",
"@ionic/storage": "2.0.1",
"angular-svg-round-progressbar": "^1.2.0",
"ionic-angular": "3.8.0",
"ionicons": "3.0.0",
"rxjs": "5.4.3",
"sw-toolbox": "3.6.0",
"zone.js": "0.8.18"
},
"devDependencies": {
"@ionic/app-scripts": "3.0.1",
"typescript": "2.3.4"
},
"description": "An Ionic project"
}
Issue Analytics
- State:
- Created 6 years ago
- Comments:13 (1 by maintainers)
Top Results From Across the Web
Unexpected value ' ' imported by the module ' '. Please add a ...
It means it doesn't recognise it as a module. Try this: import {HttpClientModule} from '@angular/common/http';.
Read more >Developers - Unexpected value 'RoundProgressModule' imported ...
Unexpected value 'RoundProgressModule' imported by the module 'HomePageModule'. Please add a @NgModule annotation.
Read more >unexpected value imported by the module please add a ...
Please add a @NgModule annotation. Error: Unexpected value 'RoundProgressModule' imported by the module 'HomePageModule'. Please add a @NgModule annotation.
Read more >Angular Noob here - what does "Please add a @NgModule ...
ERROR in : Unexpected value 'NouisliderModule in /<project_home>/node_modules/ng2-nouislider/src/nouislider.js' imported by the module ...
Read more >Error message Is it missing @NgModule annotation? NG6002
Angular. Error message Is it missing @ NgModule annotation ? NG6002: Appears NgModule. imports AppModule Angular. 11K views 1 year ago Angular.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
So, I looked around and found this: https://stackoverflow.com/questions/45468663
Once i removed the node_modules/angular-svg-round-progressbar/node_modules directory both
ng serve
andng build
worked again. (Angular 5.0.0, progressbar 1.1.1)I just got same issue.