Skip to content

Invalid component stylesheet ID request #28656

@cexbrayat

Description

@cexbrayat

Command

serve

Is this a regression?

  • Yes, this behavior used to work in the previous version

The previous version in which this bug was not present was

19.0.0-next.10

Description

When creating a new project with CLI v19.0.0-next.11, the application doesn't have proper styling and we can see an error Invalid component stylesheet ID request: ng-c1946662535

Image

Minimal Reproduction

npx @angular/cli@next new v19-next-11 --defaults --no-routing
ng serve
Open the browser ad see the error logged in terminal running ng serve

Exception or Error

Invalid component stylesheet ID request: ng-c1946662535

Your Environment

Angular CLI: 19.0.0-next.11
Node: 20.13.1
Package Manager: npm 9.7.1
OS: darwin arm64

Angular: 19.0.0-next.10
... animations, common, compiler, compiler-cli, core, forms
... platform-browser, platform-browser-dynamic, router

Package Version

@angular-devkit/architect 0.1900.0-next.11
@angular-devkit/build-angular 19.0.0-next.11
@angular-devkit/core 19.0.0-next.11
@angular-devkit/schematics 19.0.0-next.11
@angular/cli 19.0.0-next.11
@schematics/angular 19.0.0-next.11
rxjs 7.8.1
typescript 5.6.3
zone.js 0.15.0

Anything else relevant?

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions