Skip to content

Strange 404 CSS error on ng serve, maybe related to hashing? #28812

@jpike88

Description

@jpike88

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

maybe 18.x, I'm on 19.0.0-rc.1 now

Description

Seems that when I have a particular style in my styles template, it breaks the css for that component with 404. But tweaking it in any way fixes it.

IMPORTANT: this did not throw any error, I didn't even know there was a problem until I saw the layout being out of touch

See screenshots.

Broken (see 404 error):

Image

Working:

Image

It doesn't matter how I change the styles, even just swapping two of the declarations can fix the problem. I have no idea how to begin to make this reproducible.

Minimal Reproduction

see description

Exception or Error

No response

Your Environment

 _                      _                 ____ _     ___
/ \   _ __   __ _ _   _| | __ _ _ __     / ___| |   |_ _|

/ △ \ | '_ \ / | | | | |/ _ | '__| | | | | | |
/ ___ | | | | (
| | || | | (| | | | || | | |
// __| ||_, |_,||_,|| _|||
|___/

Angular CLI: 19.0.0-rc.1
Node: 20.12.2
Package Manager: npm 10.8.1
OS: darwin arm64

Angular: 19.0.0-rc.1
... animations, cdk, cli, common, compiler, compiler-cli, core
... forms, language-service, material, material-moment-adapter
... platform-browser, platform-browser-dynamic, router

Package Version

@angular-devkit/architect 0.1900.0-rc.1
@angular-devkit/build-angular 19.0.0-rc.1
@angular-devkit/core 19.0.0-rc.1
@angular-devkit/schematics 19.0.0-rc.1
@schematics/angular 19.0.0-rc.1
rxjs 7.8.1
zone.js 0.15.0

Anything else relevant?

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