Skip to content

Update error message for an unknown tag in standalone components #45818

@pkozlowski-opensource

Description

@pkozlowski-opensource

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

core

Is this a regression?

No

Description

Currently the error for unknown element tags looks like follows:

src/app/app.component.ts:7:14 - error NG8001: 'admin-s' is not a known element:
1. If 'admin-s' is an Angular component, then verify that it is part of this module.
2. If 'admin-s' is a Web Component then add 'CUSTOM_ELEMENTS_SCHEMA' to the '@NgModule.schemas' of this component to suppress this message.

7   template: '<admin-s></admin-s>',

This error message needs to be updated for standalone components to:

  • mention @Component.imports / `@Component.schemas'
  • not mention NgModule

Metadata

Metadata

Labels

P3An issue that is relevant to core functions, but does not impede progress. Important, but not urgentarea: coreIssues related to the framework runtimebugcross-cutting: standaloneIssues related to the NgModule-less worldhotlist: error messages

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions