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.

strictTemplates in Angular 9 generates error

See original GitHub issue

Enabling the new strictTemplates flag in Angular 9’s compiler options generates the following build error: This likely means that the library (@ng-bootstrap/ng-bootstrap) which declares NgbModule has not been processed correctly by ngcc, or is not compatible with Angular Ivy. Check if a newer version of the library is available, and update if so. Also consider checking with the library's authors to see if the library is expected to be compatible with Ivy.

I am using latest ng-bootstrap.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:8
  • Comments:12 (3 by maintainers)

github_iconTop GitHub Comments

10reactions
iballi2017commented, Jun 9, 2020
  1. Go to to the CLI
  2. Press CTRL + C
  3. Press Y
  4. Re-serve your application again The error should disappear this time
2reactions
bbarrycommented, Mar 10, 2020

I’ve had this error several times during the process of updating recently.

It has gone away each time for me by deleting my ./dist directory, package-lock.json and node_modules directory

Read more comments on GitHub >

github_iconTop Results From Across the Web

Template type checking - Angular
When you enable strictTemplates and the TypeScript flag strictNullChecks , typecheck errors might occur for certain situations that might not easily be avoided....
Read more >
Angular 9's Best Hidden Feature: Strict Template Checking
Find and report more errors than ever with Angular 9's Ivy compiler, strict template checking.
Read more >
eslint Angular Strict Template Checks should show error
We have angularCompilerOptions.strictTemplates: true set for all the applications. The problem is that we have a CI pipeline that checks for ...
Read more >
strictTemplates in Angular 9 generates error - Bountysource
Enabling the new strictTemplates flag in Angular 9's compiler options generates the following build error:
Read more >
Angular 9, strict templates, incompatible types build errors
After enabling the strictTemplates compiler option in Angular 9 I am seeing a number of build errors with the TreeView.
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