You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
After days of debugging as I'm new to angular. I found that ng2-datepicker throwing this error while running application in production mode using ng build --prod. In normal development mode using npm start it works perfectly fine.
Hi,
I can confirm the same issue (Uncaught TypeError: e is not a constructor).
After removing the ng2-datepicker component from my project, it works fine.
However, I used Angular 7 and it only happens with AOT build
After days of debugging as I'm new to angular. I found that ng2-datepicker throwing this error while running application in production mode using
ng build --prod
. In normal development mode usingnpm start
it works perfectly fine.Here is my package.json.
{
"name": "myPleaks",
"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": "^6.0.3",
"@angular/common": "^6.0.3",
"@angular/compiler": "^6.0.3",
"@angular/core": "^6.0.3",
"@angular/forms": "^6.0.3",
"@angular/http": "^6.0.3",
"@angular/platform-browser": "^6.0.3",
"@angular/platform-browser-dynamic": "^6.0.3",
"@angular/router": "^6.0.3",
"@ng-bootstrap/ng-bootstrap": "^1.1.2",
"@swimlane/ngx-datatable": "^13.0.0",
"angular-calendar": "^0.22.1",
"bootstrap": "^4.1.1",
"chart.js": "^2.7.1",
"chartist": "^0.11.0",
"core-js": "^2.4.1",
"jasmine": "^3.1.0",
"jquery": "^3.2.1",
"jquery-slimscroll": "^1.3.8",
"ng-chartist": "^1.1.1",
"ng2-charts": "^1.6.0",
"ng2-dragula": "^1.5.0",
"ng2-file-upload": "^1.3.0",
"ngx-quill": "^3.1.0",
"pace-js": "^1.0.2",
"popper.js": "^1.12.5",
"rxjs": "^6.2.0",
"zone.js": "^0.8.4",
"rxjs-compat": "^6.0.0-rc.0",
"ngx-bootstrap": "^3.0.1",
"@ng-select/ng-select": "^2.8.0",
"auth0-js": "^9.4.1",
"ngx-uploader": "^6.0.4",
"aws-sdk": "^2.312.0",
"ng2-datepicker": "^3.1.1"
},
"devDependencies": {
"@angular-devkit/build-angular": "~0.6.5",
"@angular/cli": "^6.1.5",
"@angular/compiler-cli": "^6.0.3",
"@angular/language-service": "^6.0.3",
"@types/chartist": "^0.9.37",
"@types/jasmine": "~2.5.53",
"@types/jasminewd2": "~2.0.2",
"@types/jquery": "^3.2.5",
"@types/node": "~6.0.60",
"codelyzer": "~4.2.1",
"jasmine-core": "~2.6.2",
"jasmine-spec-reporter": "~4.1.0",
"karma": "~1.7.0",
"karma-chrome-launcher": "~2.1.1",
"karma-cli": "~1.0.1",
"karma-coverage-istanbul-reporter": "^1.2.1",
"karma-jasmine": "~1.1.0",
"karma-jasmine-html-reporter": "^0.2.2",
"protractor": "~5.1.2",
"ts-node": "~3.2.0",
"tslint": "~5.7.0",
"typescript": "^2.7.2"
}
}
The text was updated successfully, but these errors were encountered: