Skip to content

VSCode Angular language-service mark template errors in TypeScript file #41032

@netdjw

Description

@netdjw

🐞 bug report

Affected Package

The issue is caused by package @angular/language-service

Is this a regression?

I don't know, the issue has been present for some time.

Description

When I open typescrtipt files I see these errors:

image

image

Both errors should be present in the HTML template, not in the TypeScript code, and it's very annoying.

🔬 Minimal Reproduction

I tried to create a reprodction, but it came out of unknown reason. If I copy-paste my codes to StackBlitz the issue isn't shown.

Instead of this I shared some printscreens above.

🔥 Exception or Error

See above on printscreens.

🌍 Your Environment

Angular Version:


Angular CLI: 6.0.8
Node: 12.15.0
OS: win32 x64
Angular: 6.1.10
... core

Package                             Version
-------------------------------------------------------------
@angular-devkit/architect           0.6.8
@angular-devkit/build-angular       0.6.8
@angular-devkit/build-optimizer     0.6.8
@angular-devkit/core                0.6.8
@angular-devkit/schematics          0.6.8
@angular/animations                 6.1.9
@angular/cdk                        6.4.7
@angular/cli                        6.0.8
@angular/common                     6.1.9
@angular/compiler                   6.1.9
@angular/compiler-cli               6.1.9
@angular/forms                      6.1.9
@angular/http                       6.1.9
@angular/language-service           6.1.9
@angular/material                   6.4.7
@angular/platform-browser           6.1.9
@angular/platform-browser-dynamic   6.1.9
@angular/platform-server            6.1.9
@angular/router                     6.1.9
@ngtools/webpack                    6.0.8
@schematics/angular                 0.6.8
@schematics/update                  0.6.8
rxjs                                6.2.2
typescript                          2.7.2
webpack                             4.8.3

Anything else relevant?


code -v
1.53.2
622cb03f7e070a9670c94bae1a45d78d7181fbd4
x64


Angular Language Service version v11.2.3

Op.sys: Windows 10 Home

Metadata

Metadata

Assignees

Labels

P2The issue is important to a large percentage of users, with a workaroundarea: language-serviceIssues related to Angular's VS Code language service

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions