question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Error output when building with fullTemplateTypeCheck

See original GitHub issue

I’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:closed
  • Created 5 years ago
  • Reactions:4
  • Comments:10 (4 by maintainers)

github_iconTop GitHub Comments

5reactions
marcusrettigcommented, Aug 19, 2019

You can reproduce the issue by adding

"angularCompilerOptions": {
  "fullTemplateTypeCheck": true
}

to tsconfig.json in ngx-graph root directory, then running ng build --aot.

Opened a PR with a fix.

3reactions
sh-developerscommented, Jul 11, 2019

Any progress on fixing/replicating?

Read more comments on GitHub >

github_iconTop Results From Across the Web

angular v8 - how to get production build template errors also ...
I've already tried to add the fullTemplateTypeCheck flag but running ng build or ng serve doesn't yield the errors. { "extends": "../../tsconfig ...
Read more >
Angular 9's Best Hidden Feature: Strict Template Checking
When both AOT and the fullTemplateTypeCheck setting set to true, Angular can detect when we refer to a model that is missing from...
Read more >
Template type checking - Angular
Just as TypeScript catches type errors in your code, Angular checks the expressions and bindings within the templates of your application and can...
Read more >
Type-checking templates in Angular View Engine and Ivy
... Angular version we started getting strange errors in our production build ... So what's is currently being checked with fullTemplateTypeCheck enabled?
Read more >
Compilation - IBM
Error integrity when fetching from the cache. This message may appear when building the web app. It is related to an inconsistency within...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found