question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Unexpected value 'RoundProgressModule' imported by the module 'HomePageModule'. Please add a @NgModule annotation

See original GitHub issue

This 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:closed
  • Created 6 years ago
  • Comments:13 (1 by maintainers)

github_iconTop GitHub Comments

2reactions
ghbobcommented, Nov 20, 2017

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 and ng build worked again. (Angular 5.0.0, progressbar 1.1.1)

0reactions
mono-developercommented, Jan 19, 2018

I just got same issue.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found