-
Notifications
You must be signed in to change notification settings - Fork 2.6k
Labels
outdatedpriority: mediumMedium Priority (not high, not low priority)Medium Priority (not high, not low priority)scope: miscMisc issuesMisc issuestype: bug
Description
Current Behavior
When executing nx migrate latest and run the migrations to Nx@21.3.9 all my angular libraries failed with the message Skipping migration for project XXX. Unable to determine 'tsconfig.json' file in workspace config. and the migrations are not executed.
The script is trying to do these tasks:
Running the following migrations:
- @angular/cdk: migration-v20 (Updates the Angular CDK to v20)
- @angular/core: inject-flags (Replaces usages of the deprecated InjectFlags enum)
- @angular/core: test-bed-get (Replaces usages of the deprecated TestBed.get method with TestBed.inject)
- @angular/core: control-flow-migration (Converts the entire application to block control flow syntax)
- @angular/core: document-core (Moves imports of
DOCUMENT
from@angular/common
to@angular/core
) - nx: 21-1-0-add-ignore-entries-for-nx-rule-files (Adds **/nx-rules.mdc and **/nx.instructions.md to .gitignore if not present)
- @nx/angular: update-angular-cli-version-20-0-0 (Update the @angular/cli package version to ~20.0.0.)
- @nx/angular: migrate-provide-server-rendering-import (Migrate imports of
provideServerRendering
from@angular/platform-server
to@angular/ssr
.) - @nx/angular: replace-provide-server-routing (Replace
provideServerRouting
andprovideServerRoutesConfig
withprovideServerRendering
usingwithRoutes
.) - @nx/angular: set-generator-defaults-for-previous-style-guide (Update the generator defaults to maintain the previous style guide behavior.)
- @nx/angular: update-module-resolution (Update 'moduleResolution' to 'bundler' in TypeScript configurations. You can read more about this here: https://www.typescriptlang.org/tsconfig/#moduleResolution.)
- @nx/jest: rename-test-path-pattern (Rename the CLI option
testPathPattern
totestPathPatterns
.) - @nx/jest: replace-removed-matcher-aliases (Replace removed matcher aliases in Jest v30 with their corresponding matcher)
- @nx/angular: update-angular-cli-version-20-1-0 (Update the @angular/cli package version to ~20.1.0.)
After all the error messages I get the message:
Successfully finished running migrations from 'migrations.json'. This workspace is up to date!
Expected Behavior
I expect the migrations to run without an error.
GitHub Repo
No response
Steps to Reproduce
- Having a NX 21.0.3 monorepo, execute nx migrate latest
- Install the dependencies
- Execute the migrations nx migrate --run-migrations
Nx Report
Node : 22.14.0
OS : win32-x64
Native Target : x86_64-windows
npm : 11.4.2
nx (global) : 20.4.1
nx : 21.3.9
@nx/js : 21.3.9
@nx/jest : 21.3.9
@nx/eslint : 21.3.9
@nx/workspace : 21.3.9
@nx/angular : 21.3.9
@nx/devkit : 21.3.9
@nx/eslint-plugin : 21.3.9
@nx/module-federation : 21.3.9
@nx/rspack : 21.3.9
@nx/web : 21.3.9
@nx/webpack : 21.3.9
typescript : 5.8.3
---------------------------------------
Community plugins:
@ngrx/effects : 20.0.0
@ngrx/entity : 20.0.0
@ngrx/operators : 20.0.0
@ngrx/signals : 20.0.0
@ngrx/store : 20.0.0
@syncfusion/ej2-angular-buttons : 29.2.4
@syncfusion/ej2-angular-calendars : 29.2.4
@syncfusion/ej2-angular-charts : 29.2.4
@syncfusion/ej2-angular-dropdowns : 29.2.4
@syncfusion/ej2-angular-grids : 29.2.4
@syncfusion/ej2-angular-inplace-editor : 29.2.4
@syncfusion/ej2-angular-inputs : 29.2.4
@syncfusion/ej2-angular-lists : 29.2.4
@syncfusion/ej2-angular-navigations : 29.2.4
@syncfusion/ej2-angular-notifications : 29.2.4
@syncfusion/ej2-angular-popups : 29.2.4
@syncfusion/ej2-angular-progressbar : 29.2.4
@syncfusion/ej2-angular-treegrid : 29.2.4
Failure Logs
Skipping migration for project XXX. Unable to determine 'tsconfig.json' file in workspace config
Package Manager Version
No response
Operating System
- macOS
- Linux
- Windows
- Other (Please specify)
Additional Information
No response
Metadata
Metadata
Assignees
Labels
outdatedpriority: mediumMedium Priority (not high, not low priority)Medium Priority (not high, not low priority)scope: miscMisc issuesMisc issuestype: bug