Skip to content

Runtime broken for Angular 20.3.22+ #2387

Description

@EmaGht

Environment

  • NativeScript-Angular: 20.1.1
  • Angular: Any version >= 20.3.22

Describe the bug
ERROR TypeError: Cannot read properties of undefined (reading 'toLowerCase') bootstrap: Error bootstrapping app module: Cannot read properties of undefined (reading 'toLowerCase') TypeError: Cannot read properties of undefined (reading 'toLowerCase') at locateHostElement (file: .\src\webpack:\MyApp\node_modules@angular\core\fesm2022\debug_node.mjs:9354:28)

To Reproduce
Just run any application with Angular 20.3.22+

Expected behavior
Be able to upgrade to Angular 20.3.22+

Additional context
Caused by this addition on Angular side:
angular/angular@d86e4e7

rootElement.tagName is undefined, since it's not an HTML element

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions