Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Migration failed: Path "tsconfig.server.json" does not exist. #24264

Closed
1 task done
troncomputers opened this issue Nov 17, 2022 · 2 comments · Fixed by #24265
Closed
1 task done

Migration failed: Path "tsconfig.server.json" does not exist. #24264

troncomputers opened this issue Nov 17, 2022 · 2 comments · Fixed by #24265
Labels
area: @schematics/angular freq1: low Only reported by a handful of users who observe it rarely severity2: inconvenient type: bug/fix

Comments

@troncomputers
Copy link

Command

update

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

14.2.10

Description

× Migration failed: Path "tsconfig.server.json" does not exist.
  See "C:\Users\my_user_name\AppData\Local\Temp\ng-IY4opN\angular-errors.log" for further details.

Minimal Reproduction

Update Angular from 14.2.10 to latest 15.0.0

Exception or Error

[error] Error: Path "tsconfig.server.json" does not exist.
    at HostTree.readText (C:\Users\my_user_name\AppData\Local\Temp\angular-cli-packages-ei8R4p\node_modules\@angular-devkit\schematics\src\tree\host-tree.js:216:19)
    at new JSONFile (D:\PROJEKTY\BackupWeb\BackupWeb\ClientApp\node_modules\@schematics\angular\utility\json-file.js:23:34)
    at removeOrUpdateTarget (D:\PROJEKTY\BackupWeb\BackupWeb\ClientApp\node_modules\@schematics\angular\migrations\update-15\update-typescript-target.js:51:18)
    at D:\PROJEKTY\BackupWeb\BackupWeb\ClientApp\node_modules\@schematics\angular\migrations\update-15\update-typescript-target.js:41:29
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
    at async callRuleAsync (C:\Users\my_user_name\AppData\Local\Temp\angular-cli-packages-ei8R4p\node_modules\@angular-devkit\schematics\src\rules\call.js:78:18)


### Your Environment

```text
_                      _                 ____ _     ___
    / \   _ __   __ _ _   _| | __ _ _ __     / ___| |   |_ _|
   / △ \ | '_ \ / _` | | | | |/ _` | '__|   | |   | |    | |
  / ___ \| | | | (_| | |_| | | (_| | |      | |___| |___ | |
 /_/   \_\_| |_|\__, |\__,_|_|\__,_|_|       \____|_____|___|
                |___/


Angular CLI: 15.0.0
Node: 18.12.1
Package Manager: npm 8.19.2
OS: win32 x64

Angular: 15.0.0
... animations, cli, common, compiler, compiler-cli, core, forms
... platform-browser, platform-browser-dynamic, platform-server
... router

Package                         Version
---------------------------------------------------------
@angular-devkit/architect       0.1500.0
@angular-devkit/build-angular   15.0.0
@angular-devkit/core            15.0.0
@angular-devkit/schematics      15.0.0
@schematics/angular             15.0.0
rxjs                            7.5.6
typescript                      4.8.4


### Anything else relevant?

_No response_
@alan-agius4
Copy link
Collaborator

Looks like you have a referencing tsconfig.server.json in your angular.json but this does not exist. We should however change this to a warning.

@alan-agius4 alan-agius4 added type: bug/fix freq1: low Only reported by a handful of users who observe it rarely severity2: inconvenient area: @schematics/angular labels Nov 17, 2022
alan-agius4 added a commit to alan-agius4/angular-cli that referenced this issue Nov 17, 2022
… during migrations

Prior to this change an error was shown when a non existing tsconfig was referenced in the angular.json. This causes the update to fail.

Closes angular#24264
alan-agius4 added a commit to alan-agius4/angular-cli that referenced this issue Nov 17, 2022
… during migrations

Prior to this change an error was shown when a non existing tsconfig was referenced in the angular.json. This causes the update to fail.

Closes angular#24264
alan-agius4 added a commit to alan-agius4/angular-cli that referenced this issue Nov 17, 2022
…during migrations

Prior to this change an error was shown when a non existing tsconfig was referenced in the angular.json. This causes the update to fail.

Closes angular#24264
dgp1130 pushed a commit that referenced this issue Nov 18, 2022
…during migrations

Prior to this change an error was shown when a non existing tsconfig was referenced in the angular.json. This causes the update to fail.

Closes #24264
dgp1130 pushed a commit that referenced this issue Nov 18, 2022
…during migrations

Prior to this change an error was shown when a non existing tsconfig was referenced in the angular.json. This causes the update to fail.

Closes #24264

(cherry picked from commit 5a123a6)
@angular-automatic-lock-bot
Copy link

This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.

@angular-automatic-lock-bot angular-automatic-lock-bot bot locked and limited conversation to collaborators Dec 19, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area: @schematics/angular freq1: low Only reported by a handful of users who observe it rarely severity2: inconvenient type: bug/fix
Projects
None yet
2 participants