While working on my angular 2 project with angular-cli, I am facing an issue. Locally, when I build it for production using ng build --prod --aot
, there are no problems. However, when the project is built on the server, I encounter the following errors:
...
[1m [31mERROR in
<frontend/src/$$_gendir/app/incidents/dialog/tabs/measurements/incident.measurements.component.ngfactory.ts>
(1080,35): Supplied parameters do not match any signature of call
target. [39m [22m
[1m [31mERROR in
<frontend/src/$$_gendir/app/incidents/dialog/tabs/measurements/incident.measure.form.ngfactory.ts>
(1050,89): Property 'takenMeassure' does not exist on type
'IncidentAction'. [39m [22m
[1m [31mERROR in
<frontend/src/$$_gendir/app/shared/dropdown/custom-dropdown.component.ngfactory.ts>
(94,7): Supplied parameters do not match any signature of call
target. [39m [22m
...
These errors need to be fixed, but what puzzles me is why the angular compiler behaves differently on the server machine compared to my local setup. The versions of all libraries are the same and each time the project is built on the server, the node_modules
folder is deleted and dependencies are re-downloaded. Any insights into why this discrepancy occurs would be greatly appreciated :)