"@angular/cli": "1.0.0",
"@angular/compiler": "2.4.9",
"@angular/compiler-cli": "2.4.9",
"@angular/core": "2.4.9",
I'm encountering an error during deployment to Heroku for my medium-sized Angular 2 project. The specific error message is:
ERROR in /tmp/build_517db5365a6effb7ffc72a360964722f/src/$$_gendir/app/modules/messages/components/list-messages.component.ngfactory.ts (440,79): Supplied parameters do not match any signature of call target.
Below are the scripts defined in my package.json:
"scripts": {
"ng": "ng",
"heroku-prebuild": "npm install -g http-server",
"heroku-postbuild": "ng build --prod",
"start": "http-server dist/",
"test": "ng test",
"lint": "ng lint",
"e2e": "ng e2e"
},
The error only occurs when deploying to Heroku; locally running ng build --prod
completes without issues.
I've tried to identify any missing parameters in my component but haven't found any issues yet. Here's the code for list-messages.component.ts:
// Component code here...
Furthermore, here is the messages.service.ts file:
// Service code here...
Lastly, the HTML template for list-messages.component.html:
<div class="row">
// Template code here...
</div>
If you have any insights or suggestions, I'd greatly appreciate them. Thank you!