Skip to content

Angular 19 component import brokenΒ #1659

@ilyakonrad

Description

@ilyakonrad

Describe the bug

Impossible to import components. Adding import statement anywhere results in Angular compilation initialization failed. CLI error on the page and Error: Digest method not supported error in the console.

Link to the blitz that caused the error

https://stackblitz.com/edit/stackblitz-starters-397me8uu?file=src%2Froutes.ts

Steps to reproduce

  1. Comment out the import on line 9 in routes.ts (import { ToggleableComponent } from './toggleable.component').
  2. See the build completing successfully.
  3. Revert the change.
  4. See the error again.

Expected behavior

There shouldn't be any error.

Parity with Local

Screenshots

image

Platform

  • OS: Windows
  • Browser: Chrome
  • Version: 131.0.6778.109

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions