Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
etavenerInmarsat opened this issue Sep 7, 2022 · 2 comments

Comments

@etavenerInmarsat
Copy link

etavenerInmarsat commented Sep 7, 2022

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
Copy link
Member

JoostK commented Sep 7, 2022

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

@JoostK JoostK closed this as not planned Won't fix, can't repro, duplicate, stale Sep 7, 2022
@angular-automatic-lock-bot
Copy link

This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.

@angular-automatic-lock-bot angular-automatic-lock-bot bot locked and limited conversation to collaborators Oct 8, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants