Closed Hennadiy closed 6 years ago
I had the same issue
can you share your package.json info please?
{ "name": "ui.back.office", "version": "0.0.0", "license": "MIT", "scripts": { "ng": "ng", "start": "ng serve", "build": "ng build", "test": "ng test", "lint": "ng lint", "e2e": "ng e2e" }, "private": true, "dependencies": { "@angular/animations": "^5.2.0", "@angular/common": "^5.2.0", "@angular/compiler": "^5.2.0", "@angular/core": "^5.2.0", "@angular/forms": "^5.2.0", "@angular/http": "^5.2.0", "@angular/platform-browser": "^5.2.0", "@angular/platform-browser-dynamic": "^5.2.0", "@angular/platform-server": "^5.2.0", "@angular/router": "^5.2.0", "@swimlane/ngx-datatable": "^10.4.0", "angular-io-datepicker": "^1.3.1", "bootstrap": "^4.0.0-beta.2", "classlist.js": "^1.1.20150312", "core-js": "^2.5.3", "crypto-js": "^3.1.9-1", "enhanced-resolve": "^3.3.0", "jquery": "^3.2.1", "jscs": "^3.0.7", "ng2-bootstrap-modal": "^1.0.1", "ng2-charts": "^1.6.0", "ng2-datepicker": "^2.1.8", "ngx-bootstrap": "^1.9.3", "ngx-loading": "^1.0.14", "ngx-push-notifications": "^1.0.1", "notifyjs": "^3.0.0", "rxjs": "^5.5.6", "web-animations-js": "^2.3.1", "webpack-dev-server": "^2.10.1", "zone.js": "^0.8.20" }, "devDependencies": { "@angular/cli": "^1.6.4", "@angular/compiler-cli": "^5.2.0", "@angular/language-service": "^4.4.6", "@types/jasmine": "2.5.45", "@types/jquery": "^3.2.17", "@types/node": "^6.0.96", "codelyzer": "~3.0.1", "jasmine-core": "^2.6.4", "jasmine-spec-reporter": "^4.1.1", "karma": "^1.7.1", "karma-chrome-launcher": "~2.1.1", "karma-cli": "~1.0.1", "karma-coverage-istanbul-reporter": "^1.3.3", "karma-jasmine": "^1.1.1", "karma-jasmine-html-reporter": "^0.2.2", "protractor": "~5.1.2", "ts-node": "~3.0.4", "tslint": "~5.3.2", "typescript": "2.4.2" } }
"dependencies": {
"@angular/animations": "5.2.0",
"@angular/cli": "1.6.4",
"@angular/common": "5.2.0",
"@angular/compiler": "5.2.0",
"@angular/compiler-cli": "5.2.0",
"@angular/core": "5.2.0",
"@angular/forms": "5.2.0",
"@angular/http": "5.2.0",
"@angular/platform-browser": "5.2.0",
"@angular/platform-browser-dynamic": "5.2.0",
"@angular/platform-server": "5.2.0",
"@angular/router": "5.2.0",
"@swimlane/ngx-charts": "7.0.1",
"@types/angular": "1.6.40",
"@types/core-js": "^0.9.35",
"@types/jasmine": "^2.6.3",
"@types/jquery": "^3.2.16",
"@types/node": "^8.0.49",
"@types/requirejs": "^2.1.28",
"@types/source-map": "^0.5.2",
"@types/toastr": "^2.1.32",
"@types/webpack": "3.8.2",
"@types/xlsx": "0.0.36",
"angular2-adal": "^0.1.4",
"ng2-datepicker": "^2.2.1",
"core-js": "^2.5.3",
"d3": "^4.12.2",
"jquery": "^3.1.1",
"ngx-modal": "0.0.29",
"path": "^0.12.7",
"reflect-metadata": "^0.1.9",
"rxjs": "5.5.2",
"spin.js": "2.3.2",
"toastr": "^2.1.4",
"ts-xlsx": "0.0.11",
"typescript": "2.4.2",
"zone.js": "^0.8.18"
},
"devDependencies": {
"@types/d3": "^4.11.0",
"to-string-loader": "^1.1.5",
"ts-node": "^3.3.0",
"tslint": "^3.5.0",
"typings": "^1.3.3"
}```
Fix when downgrade ng2-datepicker package to 2.1.8
I get an error when trying to build project with AOT: Unexpected value 'NgDatepickerModule in ng2-datepicker/dist/src/ng-datepicker/ng-datepicker.module.d.ts' imported by the module 'module'. Please add a @NgModule annotation.
Build without AOT works correctly.