No error with 'strictTemplates' and missing dependency (component using attribute selector)

This issue has been created since 2022-09-07.

Which @angular/* package(s) are the source of the bug?

compiler-cli, compiler

Is this a regression?

No

Description

TsConfig.json:

{
  "extends": "./tsconfig.base.json",
  "angularCompilerOptions": {
    "strictTemplates": true,
    "skipTemplateCodegen": true,
    "strictMetadataEmit": true,
    "enableResourceInlining": true
  }
}

No error:
Screenshot 2022-09-07 at 11 14 29

Error:
Screenshot 2022-09-07 at 11 15 26

'strictTemplates' doesn't seem to check inputs / components using attribute selectors. .

In the case above, I get no error - not even runtime! The error only occurs if the template uses a dynamic template.

Please provide a link to a minimal reproduction of the bug

No response

Please provide the exception or error you saw

I see no error, that's the issue.

Please provide the environment you discovered this bug in (run ng version)

Using Angular 14.

Anything else?

If this is not a bug, please tell me how I can get the build to show errors when a dependancy like this is missing.

JoostK wrote this answer on 2022-09-07

This is a known limitation of type-checking; please see #46351 for details.

More Details About Repo
Owner Name angular
Repo Name angular
Full Name angular/angular
Language TypeScript
Created Date 2014-09-18
Updated Date 2022-10-04
Star Count 84139
Watcher Count 3064
Fork Count 22243
Issue Count 1206

YOU MAY BE INTERESTED

Issue Title Created Date Comment Count Updated Date
how do I provide a custom theme? 3 2021-05-18 2022-09-17
How can I pass current page to URL 1 2021-05-18 2022-09-17
Run stepper motor for a precise number of steps. 0 2021-09-29 2022-06-22
Change setup screen messaging if Patchfox creates the profile 0 2022-09-09 2022-09-18
how to print out the state vector inside the "eom" function? 5 2021-01-09 2022-09-22
Add command-line option to return only the RPS URL to standard output 1 2021-02-11 2022-09-11
Does not update shade on current buffer when using NERDTree 1 2021-06-04 2022-09-18
Mouse issue in Goneovim 0 2021-06-03 2022-10-04
Add option for borderless window. 3 2021-07-08 2022-08-27
Add more helpful debugging information when failing to parse code blocks 4 2022-01-03 2022-07-26
↔ [Converter] Add support for aten::__range_length in Torch-TensorRT 0 2022-01-29 2022-09-03
Unhandled exception 2 2021-09-15 2022-01-09
Up and Down arrow keys to rotate images 1 2021-09-13 2022-01-26
Intermittent - app closes when switching devices. 5 2021-08-08 2022-08-13
Create a ServletFilter that can customise hawtconfig.json through system properties, etc. 1 2019-12-09 2022-07-24
`build`: set default PATH 0 2022-04-06 2022-09-16
EDD 3.0 - users are not auto registered when checking out with PayPal Commerce 2 2022-03-24 2022-09-21
Error: Could not set certificate: (OpenSSL) Certificate is nullptr 2 2022-04-26 2022-09-18
Bombs do not destroy turrets 1 2021-08-08 2022-08-05
Live Mode Barcode (canvas.DrawingBuffer) Overlay Shows Below Camera/Video Frame 7 2017-09-19 2022-09-13
[Hyperion] Backend/Frontend refactoring to enable chart-repo and chart-store for hyperion (Don't enable it now) 0 2022-02-09 2022-02-23
Rename `StateHandle` to `ReadSignal` 0 2021-11-10 2022-07-27
Fail to open document with Microsoft Office (Office 10) 3 2021-03-11 2022-09-24
Dynamic list of mld pages for (documentation) stanza 1 2022-05-11 2022-08-14
Share user sessions 0 2021-06-19 2022-01-19
Is is possible to deactivate Orchestrator persistence? 3 2020-09-27 2022-08-21
Bug when implementing "Pod Spec"-able Bindings 3 2021-11-22 2022-09-13
Extract nested scroll view out of activity_app_settings.xml 0 2022-04-19 2022-08-06
[MaterialColors] getColorRoles - incorrect dark tones 0 2022-02-28 2022-08-17
www.dobreprogramy.pl 3 2021-12-23 2022-01-20
"Back" reveals disabled Save-Button 2 2022-03-16 2022-07-15
Meilisearch SDK can give strange errors when running against newer meilisearch versions 4 2021-08-10 2022-09-11
Issue with Audio with Microsoft RDGateway 3 2022-09-06 2022-09-24
Connecting to Windows 10\Windows Server 2019 Session 0 through FreeRDP 5 2022-09-20 2022-09-24
Account recovery request 3 2021-10-07 2022-08-27
Missing license. 3 2021-04-14 2022-01-13
Fail to execute "Compose Up" action for docker-compose.yml file with Docker Desktop setting "Compose V2" enabled 1 2021-08-20 2022-09-23
provide value list for stage 0 2021-06-18 2022-08-27
私有方法的Mock必须放到Mock类中,会与Mockito不兼容 2 2021-04-13 2022-09-25
增大batch后Segmentation fault 3 2021-08-24 2022-09-30
Create `voting_period` and seal off vote data 1 2018-05-30 2022-09-18
NullPointException about InAppMessageView 3 2022-03-30 2022-09-25
希望能记忆音视频播放进度 3 2022-01-18 2022-01-16
issubclass doesn't narrow type 3 2022-06-09 2022-09-15
Error on code snippets: Unresolved directive in <stdin> 1 2021-09-17 2022-09-20
map rotating on every stop 3 2022-09-07 2022-09-12
How to define a generic graphql controller? 3 2022-07-13 2022-09-25
Add ResponseEntity.ofNullable() to deal with non-Optional nullable objects 2 2022-09-09 2022-09-21
Should pytest* be in dev-requirements.txt instead of requirements.txt? 2 2021-08-04 2022-07-10
Determine non-HTTP(S) link handling behavior 4 2022-02-24 2022-09-30