Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Migration to Remove any karma configuration files that only contain the default content Fails #31044

Closed as duplicate of#30988
@mylifeandcode

Description

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

No response

Description

Updating from Angular 20.1 to 20.2, the migration to Remove any karma configuration files that only contain the default content fails with this error:

✖ Migration failed: ENOENT: no such file or directory, open 'C:\DevForFun\workouttracker\config\files\karma.conf.js.template'

The message also references a log file, which contains the following:

[error] Error: ENOENT: no such file or directory, open 'C:\DevForFun\workouttracker\config\files\karma.conf.js.template'
at async open (node:internal/fs/promises:639:25)
at async readFile (node:internal/fs/promises:1243:14)
at async generateDefaultKarmaConfig (C:\DevForFun\workouttracker\workout-tracker\node_modules@schematics\angular\migrations\karma\karma-config-comparer.js:32:20)
at async compareKarmaConfigToDefault (C:\DevForFun\workouttracker\workout-tracker\node_modules@schematics\angular\migrations\karma\karma-config-comparer.js:87:28)
at async C:\DevForFun\workouttracker\workout-tracker\node_modules@schematics\angular\migrations\karma\migration.js:45:42
at async C:\DevForFun\workouttracker\workout-tracker\node_modules@schematics\angular\utility\workspace.js:64:24
at async callRuleAsync (C:\Users\AHummel\AppData\Local\Temp\angular-cli-packages-JTCUQN\node_modules@angular-devkit\schematics\src\rules\call.js:80:18)

The error is accurate, as the file it's looking for does not exist. The Angular application is actually in a sub-folder of a repo containing the API project and the Angular app (see folder structure of project mentioned in reproduction steps below).

Minimal Reproduction

Exception or Error

✖ Migration failed: ENOENT: no such file or directory, open 'C:\DevForFun\workouttracker\config\files\karma.conf.js.template'
 See "(your filename will vary)" for further details.

Your Environment

Angular CLI: 20.2.0
Node: 22.17.1
Package Manager: npm 10.9.2
OS: win32 x64
Angular: 20.2.1
... animations, common, compiler, compiler-cli, core, forms
... language-service, localize, platform-browser
... platform-browser-dynamic, router
Package Version
------------------------------------
@angular-devkit/architect 0.2002.0
@angular-devkit/core 18.2.2
@angular-devkit/schematics 18.2.2
@angular/build 20.2.0
@angular/cli 20.2.0
@schematics/angular 20.2.0
rxjs 7.8.1
typescript 5.8.3
zone.js 0.15.0

Anything else relevant?

Nothing else. Thanks for all you do to make this a great framework. :)

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

        AltStyle によって変換されたページ (->オリジナル) /