hi, i have this error when i try a prod builded version.
ERROR Error: Uncaught (in promise): Error: No provider for t!
But i think, is not a fail of angular cookie because, i don't use this lib.
The compiled code fail :
[...] function b(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];t.error.apply(t,e)}function w(t,e){var n=t+" caused by: "+(e instanceof Error?e.message:e),r=Error(n);return r[mo]=e,r}/**
the probleme is localized here :
function w(t,e){var n=t+" caused by: "+(e instanceof Error?e.message:e),r=Error(n);return r[mo]=e,r}
@angular/cli: 1.1.0
node: 6.10.3
os: win32 x64 (win 10)
@angular/animations: 4.2.5
@angular/common: 4.2.5
@angular/compiler: 4.2.5
@angular/core: 4.2.5
@angular/forms: 4.2.5
@angular/http: 4.2.5
@angular/platform-browser: 4.2.5
@angular/platform-browser-dynamic: 4.2.5
@angular/router: 4.2.5
@angular/cli: 1.1.0
@angular/compiler-cli: 4.2.5
@angular/language-service: 4.2.5
ng build -prod
{
"name": "project",
"version": "0.0.1",
"license": "MIT",
"scripts": {
"ng": "ng",
"start": "ng serve",
"build": "ng build",
"test": "ng test",
"lint": "ng lint",
"e2e": "ng e2e",
"json-server": "json-server --watch db.json"
},
"private": true,
"dependencies": {
"@angular/animations": "^4.0.0",
"@angular/common": "^4.0.0",
"@angular/compiler": "^4.0.0",
"@angular/core": "^4.0.0",
"@angular/forms": "^4.0.0",
"@angular/http": "^4.0.0",
"@angular/platform-browser": "^4.0.0",
"@angular/platform-browser-dynamic": "^4.0.0",
"@angular/router": "^4.0.0",
"@ng-bootstrap/ng-bootstrap": "^1.0.0-alpha.26",
"@types/node": "^6.0.78",
"angular-datatables": "^4.1.1",
"angular2-highcharts": "^0.5.5",
"angular2-jwt": "^0.2.3",
"angular2-moment": "^1.3.3",
"angular2-notifications": "^0.7.4",
"angular2-text-mask": "^8.0.2",
"bootstrap": "^3.3.7",
"core-js": "^2.4.1",
"crypt": "0.0.2",
"datatables.net": "^1.10.15",
"datatables.net-dt": "^1.10.15",
"font-awesome": "^4.7.0",
"highcharts": "^5.0.12",
"intl-tel-input": "^11.0.15",
"jquery": "^3.2.1",
"json-server": "^0.10.1",
"md5": "^2.2.1",
"metismenu": "^2.7.0",
"ng2-sweetalert2": "0.0.8",
"ngx-bootstrap": "^1.7.1",
"ngx-pagination": "^3.0.0",
"rxjs": "^5.1.0",
"zone.js": "^0.8.4"
},
"devDependencies": {
"@angular/cli": "1.1.0",
"@angular/compiler-cli": "^4.0.0",
"@angular/language-service": "^4.0.0",
"@types/datatables.net": "^1.10.1",
"@types/jasmine": "2.5.45",
"@types/jquery": "^2.0.47",
"@types/metismenu": "^2.6.0",
"@types/node": "~6.0.60",
"codelyzer": "~3.0.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",
"node-sass": "^4.5.3",
"protractor": "~5.1.2",
"ts-node": "~3.0.4",
"tslint": "~5.3.2",
"typescript": "~2.3.3"
}
}
Thank you by advance
I have founded the problem. It's angular2-notifications when you use in a service. He's not compatible with build -prod.
But it's possible to use angular2-notifications in components ;)
@MikhaelGerbet im using its default NotificationService and still accur with this issue
This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.
Read more about our automatic conversation locking policy.
_This action has been performed automatically by a bot._
Most helpful comment
I have founded the problem. It's angular2-notifications when you use in a service. He's not compatible with build -prod.
But it's possible to use angular2-notifications in components ;)