config.json file cannot be found in Angular v20

Discussão em 'Angular' iniciado por user2174904, Maio 29, 2025.

  1. user2174904

    user2174904 Guest

    I have just updated my Angular app from version 19 to v 20. The updated seemed to work fine except the JSON files in my assets folder no longer. I have a config.json file in the assets folder which is deployed to the server as part of the package. During the DevOps I use a file transformation tasks to make changes just before the new files are uploaded.

    The error is:


    The resource you are looking for has been removed, had its name changed, or is temporarily unavailable.
    ​

    However:

    1. The config.json is present in the live directory. I can see it there when I examine the live files.
    2. It works 100% fine when running Angular 19 (I rolled back the changes to test this and with v19 all works fine).
    3. Also when I insert the URL of the file in the browser, it cannot be found with v20 running. But with v19, and HTTP get to the file works.

    Am I missing something simple here, or is there a change in v20 that I am not aware of?

    Continue reading...

Compartilhe esta Página