Error output when building with fullTemplateTypeCheck
See original GitHub issueI’m submitting a … (check one with “x”)
[x ] bug report => search github for a similar issue or PR before submitting
[ ] feature request
[ ] support request => Please do not submit support request here
Current behavior Building an application with fullTemplateTypeCheck set to true produces the error (file path removed):
.../status-graph-widget.component.html(27,11): : Directive GraphComponent, Expected 1 arguments, but got 0.
Expected behavior No error reported. I guess the error is there: https://github.com/swimlane/ngx-graph/blob/b04f64ae52a37d86383fe1515399adfe53adc609/src/graph/graph.component.ts#L859-L860
The function expects an argument, but the HostListener decorator does not provide one.
Reproduction of the problem
Build an application in prod mode with the fullTemplateTypeCheck parameter set to true.
Add to the tsconfig.app.json file:
"angularCompilerOptions": { "fullTemplateTypeCheck": true, },
What is the motivation / use case for changing the behavior?
Please tell us about your environment:
-
ngx-graph version: 5.0.0
-
Angular version: 6.0.1
-
Browser: [ ]
-
Language: [TypeScript 2.7.2]
Issue Analytics
- State:
- Created 5 years ago
- Reactions:4
- Comments:10 (4 by maintainers)

Top Related StackOverflow Question
You can reproduce the issue by adding
to
tsconfig.jsonin ngx-graph root directory, then runningng build --aot.Opened a PR with a fix.
Any progress on fixing/replicating?