TwanoO67 / ngx-admin-lte

Admin LTE for Angular 2/4/6/8 as a NPM package
MIT License
109 stars 47 forks source link

Facing NG6002: Appears in the NgModule.imports of AppModule, but could not be resolved to an NgModule class. #86

Open ankurraiyani opened 4 years ago

ankurraiyani commented 4 years ago

Hi,

Thanks for this library. I have created new project with v10 and integrated the latest admin-lte and ngx-admin-let. Below is my package.json

{ "name": "mmp-angular", "version": "0.0.0", "scripts": { "ng": "ng", "start": "ng serve", "build": "ng build", "test": "ng test", "lint": "ng lint", "e2e": "ng e2e" }, "private": true, "dependencies": { "@angular/animations": "~10.1.3", "@angular/common": "~10.1.3", "@angular/compiler": "~10.1.3", "@angular/core": "~10.1.3", "@angular/forms": "~10.1.3", "@angular/http": "^7.2.16", "@angular/platform-browser": "~10.1.3", "@angular/platform-browser-dynamic": "~10.1.3", "@angular/router": "~10.1.3", "@ngx-translate/core": "^13.0.0", "@ngx-translate/http-loader": "^6.0.0", "admin-lte": "^3.0.5", "bootstrap": "^4.5.2", "font-awesome": "^4.7.0", "ionicons": "^5.1.2", "jquery": "^3.5.1", "ngx-admin-lte": "^3.0.0-beta.1", "ngx-toastr": "^13.0.0", "rxjs": "~6.6.0", "tslib": "^2.0.0", "zone.js": "~0.10.2" }, "devDependencies": { "@angular-devkit/build-angular": "~0.1001.3", "@angular/cli": "~10.1.3", "@angular/compiler-cli": "~10.1.3", "@types/node": "^12.11.1", "@types/jasmine": "~3.5.0", "@types/jasminewd2": "~2.0.3", "codelyzer": "^6.0.0", "jasmine-core": "~3.6.0", "jasmine-spec-reporter": "~5.0.0", "karma": "~5.0.0", "karma-chrome-launcher": "~3.1.0", "karma-coverage-istanbul-reporter": "~3.0.2", "karma-jasmine": "~4.0.0", "karma-jasmine-html-reporter": "^1.5.0", "protractor": "~7.0.0", "ts-node": "~8.3.0", "tslint": "~6.1.0", "typescript": "~4.0.2" } }

I am getting below error when i run the project ng serve. image

Please help.

Thanks

TwanoO67 commented 4 years ago

Hello,

It seems that's a breaking change introduced by angular10. I supposed that a new way to declare module is required but I have no idea on how to do that.