Skip to content

Bug Report: ɵassertType false positive error in Angular Language Service (newest VS Code extension) #63046

Closed

Description

@m-obti

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

core, language-service

Is this a regression?

Yes

Description

After the latest update of the Angular Language Service VS Code extension (today), a previously working template now throws the following error:

Property 'ɵassertType' does not exist on type 'typeof import(".../node_modules/@angular/core/index")'.

This occurs on (keydown)="..." bindings inside a template of a component that uses ReactiveFormsModule.

Example:

<input
  matInput
  formControlName="zaehlerstand"
  [placeholder]="getPlaceholderValue()"
  (keydown.enter)="handleEnter($event)"
  (keydown)="forceValidation()"
/>

Downgrading the extension to the previous version (~3 weeks ago) immediately resolves the issue without any code changes.

Disabling strict template type checking ("strictTemplates": false in tsconfig.json) also works around the issue, but this is not ideal.

Please provide a link to a minimal reproduction of the bug

No response

Please provide the exception or error you saw

Property 'ɵassertType' does not exist on type 'typeof import(".../node_modules/@angular/core/index")'.

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

Angular CLI: 19.2.14
Node: 20.11.1
Package Manager: npm 10.2.4
OS: win32 x64

Angular: 19.2.14
... animations, cli, common, compiler, compiler-cli, core, forms
... platform-browser, platform-browser-dynamic, router

Package                            Version
------------------------------------------------------------
@angular-devkit/architect          0.1902.14
@angular-devkit/build-angular      19.2.14
@angular-devkit/core               19.2.14
@angular-devkit/schematics         19.2.14
@angular/cdk                       19.2.18
@angular/material                  19.2.18
@angular/material-moment-adapter   19.2.18
@schematics/angular                19.2.14
rxjs                               7.8.2
typescript                         5.8.3
zone.js                            0.15.1

Anything else?

No response

Activity

  1. degloman commented on Aug 7, 2025

    @degloman

    I have also encountered this issue.

  2. lhargil commented on Aug 7, 2025

    @lhargil

    Same here. In my case, it occurred on (input) bindings.

  3. added
    area: language-service
    on Aug 7, 2025
  4. added this to the needsTriage milestone on Aug 7, 2025
  5. te1995 commented on Aug 7, 2025

    @te1995

    Just got the same issue as well on a change listener on an input element.

  6. aliounetriande commented on Aug 7, 2025

    @aliounetriande

    Hi everyone. Just got the same issue and resoled it by downgrading the extension to the previous version as recommanded by @m-obti .
    Here is my environment

    Image
  7. bordis commented on Aug 7, 2025

    @bordis

    Just got the same issue here:
    Property 'ɵassertType' does not exist on type 'typeof import(".../node_modules/@angular/core/index")'.ngtsc(2339)

    EDIT
    fix downgrading to version 20.1.1 and uncheck auto update

    Image

    To install a especific version, just right click in the plugin and "Install Especific Version..."

  8. MatheusMaestri commented on Aug 7, 2025

    @MatheusMaestri

    estou com o mesmo problema, porém com (change)
    Property 'ɵassertType' does not exist on type 'typeof import(".../node_modules/@angular/core/index")

  9. aritrikabanerjee commented on Aug 7, 2025

    @aritrikabanerjee

    same Issue
    Property 'ɵassertType' does not exist on type 'typeof import(".../node_modules/@angular/core/index")

  10. rcardenas-2020166 commented on Aug 7, 2025

    @rcardenas-2020166

    Creo que es la extensión de vscode, es un cambio reciente, la desinstale y ya no tengo problemas en la consola

  11. shivardev commented on Aug 7, 2025

    @shivardev

    Got the same Issue

  12. JanProchy commented on Aug 7, 2025

    @JanProchy

    Did few quick tests..

    • it is NOT happening with the latest version of angular 20.1.6 + latest angular language service 20.2.0
    • it IS happening with angular version 19 + latest angular language service
    • quick temp fix could be done by installing previous version of angular language service 20.1.1
    Image Image
  13. JPedro0 commented on Aug 7, 2025

    @JPedro0

    Have the same problem, is the new version of "Angular language service 20.2.0", downgrading to 20.1.1 "solve" this problem

  14. SalAndani commented on Aug 7, 2025

    @SalAndani

    Same problem on (click); downgraded to 20.1.1 works

  15. lhargil commented on Aug 7, 2025

    @lhargil

    Did few quick tests..

    • it is NOT happening with the latest version of angular 20.1.6 + latest angular language service 20.2.0
    • it IS happening with angular version 19 + latest angular language service
    • quick temp fix could be done by installing previous version of angular language service 20.1.1

    Image Image

    Yes that's right. I'm working on an Angular 19 app, while using the latest language service.

  16. 3 remaining items

  17. joaohdib commented on Aug 7, 2025

    @joaohdib

    same here, happened with (load) binding

  18. nandou24 commented on Aug 7, 2025

    @nandou24

    same here, version 20.1.1 fix the problem

  19. added a commit that references this issue on Aug 7, 2025
    7c90201
  20. Haithem-SBOUI commented on Aug 7, 2025

    @Haithem-SBOUI

    same here with (keyup.enter)
    Angular version 19
    downgrade Angular Langauge Service solve the problem

  21. JeanMeche commented on Aug 7, 2025

    @JeanMeche
    Member

    #63053 should address this issue (and will require a re-release of the extension).

  22. ozcanavtat commented on Aug 7, 2025

    @ozcanavtat

    Just got the same issue here: Property 'ɵassertType' does not exist on type 'typeof import(".../node_modules/@angular/core/index")'.ngtsc(2339)

    EDIT fix downgrading to version 20.1.1 and uncheck auto update

    Image To install a especific version, just right click in the plugin and "Install Especific Version..."

    I solved it with this method too.

  23. added a commit that references this issue on Aug 7, 2025
    45b030b
  24. npajaro commented on Aug 8, 2025

    @npajaro

    El problema se resolvió actualizando la extensión

    Image Image
  25. avadhut-noola commented on Aug 8, 2025

    @avadhut-noola

    Installing downgraded and specific version will help:

    Image

    Just install previous one version using "Install Specific Version"

  26. krisc-informatica commented on Aug 8, 2025

    @krisc-informatica

    I had the same error, but in the extension section of VS Code, the language plugin gave the option 'Restart plugin' and then it was solved automatically.

  27. ivomans commented on Aug 8, 2025

    @ivomans

    Upgrading to 20.2.1 just solved this issue for me.

  28. robertveigl commented on Sep 2, 2025

    @robertveigl

    Same here, my environment:

    Angular CLI: 20.1.3
    Node: 22.17.1
    Package Manager: npm 10.9.2
    OS: darwin arm64

    Angular: 20.1.3
    ... build, cli, common, compiler, compiler-cli, core, forms
    ... platform-browser, router

    Package Version

    @angular-devkit/architect 0.2001.3
    @angular-devkit/core 20.1.3
    @angular-devkit/schematics 20.1.3
    @schematics/angular 20.1.3
    rxjs 7.8.2
    typescript 5.8.3
    zone.js 0.15.1

  29. angular-automatic-lock-bot commented on Oct 3, 2025

    @angular-automatic-lock-bot

    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.

  30. locked and limited conversation to collaborators on Oct 3, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area: language-service

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions