Home > Back-end >  Intellij angular detects errors in html that does not exist
Intellij angular detects errors in html that does not exist

Time:09-02

Intellij detects errors in the html which does not exist as if it did not take into account the node modules, of course the project is fully functional it is just the IDE which displays these errors.

Intellij errors

Here are the types of error it shows :

Attribute baseChart is not allowed here
Property data is not provided by any applicable directives nor by canvas element

I know leaving errors doesn't change anything in the project but it's quite confusing to have to code with this.

CodePudding user response:

Because The name of selector component is the same with native <canvas> element. If you don't want it to show as error you can edit configuration by:

Settings/Preferences > Inspections > Angular > Undefined bidding

and change Severity from Error to any other type, but this way it will cause to all of cases even it truly wrong.

CodePudding user response:

Support for the new Angular package format introduced in Angular 13 is available since IDE version 2021.3 (see WEB-53312); Angular 14 support (standalone components, etc.) is added in version 2022.2. To be able to work with the recent Angular versions, please consider upgrading IDEA

  • Related