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.

Cannot compile with fullTemplateTypeCheck option on

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, post on Stackoverflow or Gitter

Current behavior

When turning on the fullTemplateTypeCheck option in angularCompilerOptions and having ngx-datatable as a dependency, my project won’t compile in prod mode Expected behavior

ngx-datatable should not prevent a build with the fullTemplateTypeCheck option turned on Reproduction of the problem

Add ngx-datatable as a dependency (and instantiate a datatable), turn on the fullTemplateTypeCheck option in tsconfig.app.json and try to compile in prod mode What is the motivation / use case for changing the behavior?

The fullTemplateTypeCheck option is recommended as per the Angular documentation (see https://angular.io/guide/aot-compiler) and there is currently no available option to turn off this check only for dependencies (see https://github.com/angular/angular/issues/21353) Please tell us about your environment:

  • Table version:

ngx-datatable 13.0.1

  • Angular version:

Angular 6.1.0

  • Browser: [all | Chrome XX | Firefox XX | IE XX | Safari XX | Mobile Chrome XX | Android X.X Web Browser | iOS XX Safari | iOS XX UIWebView | iOS XX WKWebView ]
  • Language: [all | TypeScript X.X | ES6/7 | ES5]

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:2
  • Comments:5

github_iconTop GitHub Comments

1reaction
olaf89commented, Dec 10, 2018

I am also getting this error, could you publish the patch?

1reaction
nsmithdevcommented, Nov 6, 2018

Just to confirm. I’m still seeing the same error with version 14.0.0

ERROR in node_modules@swimlane\ngx-datatable\release\components\header\header.component.d.ts.DataTableHeaderComponent.html(11,9): : Element implicitly has an ‘any’ type because type ‘{ left: {}; center: {}; right: {}; }’ has no index signature. node_modules@swimlane\ngx-datatable\release\components\body\body-row.component.d.ts.DataTableBodyRowComponent.html(5,7): : Element implicitly has an ‘any’ type because type ‘{ left: {}; center: {}; right: {}; }’ has no index signature.

Read more comments on GitHub >

github_iconTop Results From Across the Web

angular - Why won't aot compiler error on missing property?
It looks like this AOT setting is (currently) inactive by default. ... such as the aforementioned parameter 'fulltemplatetypecheck'.
Read more >
Angular compiler options
fullTemplateTypeCheck link. When true , the recommended value, enables the binding expression validation phase of the template compiler. This phase uses ...
Read more >
Angular 9's Best Hidden Feature: Strict Template Checking
When fullTemplateTypeCheck was true, Angular checked that the hero is a valid model on the component, but it assumes the model is of...
Read more >
Angular compiler options
When you use AOT compilation, you can control how your application is compiled by specifying template compiler options in the TypeScript configuration file....
Read more >
The Ahead-of-Time (AOT) compiler - Angular - w3resource
This tutorial explains the concepts of AOT, how to specify metadata and apply available compiler options to compile your applications ...
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