Skip to content

tsconfig.server.json file is missing from Angular project #1376

@RDB-DA

Description

@RDB-DA

tsconfig.server.json file is missing from Angular project

When I try to migrate the Angular v18 to Angular 19 then got error Migration failed: Path "tsconfig.server.json" does not exist.

To Reproduce

  1. Upon further verification I found that in angular.json under server

"server": {
"builder": "@angular-devkit/build-angular:server",
"options": {
"outputPath": "dist-server",
"main": "src/main.ts",
"tsConfig": "tsconfig.server.json"
},
...
}

  1. If we run the angular project using "ng run Demo.Web:server:dev" then got error like "An unhandled exception occurred: ENOENT: no such file or directory, open '...\src\Web\ClientApp\tsconfig.server.json'"

Expected behavior
tsconfig.server.json should be there OR change "tsConfig": "tsconfig.json" in angular.json file

Screenshots

Image Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions