You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Attempting to upgrade an angular 16 project to 18, however I assume I need to upgrade nx as well. I am currently using 16.3.2, but I have installed nx 20.1.2 globally. Running the nx migrate latest command on the project results in the following error:
NX The migrate command failed.
NX Cannot read properties of undefined (reading 'schematics')
TypeError: Cannot read properties of undefined (reading 'schematics')
at C:\Users\[removed]\AppData\Local\Temp\tmp-86904-gDlI6u6BSBlc\node_modules\nx\src\command-line\migrate\migrate.js:561:24
at async Migrator.populatePackageJsonUpdatesAndGetPackagesToCheck (C:\Users\[removed]\AppData\Local\Temp\tmp-86904-gDlI6u6BSBlc\node_modules\nx\src\command-line\migrate\migrate.js:148:31)
at async Promise.all (index 2)
at async Migrator.populatePackageJsonUpdatesAndGetPackagesToCheck (C:\Users\[removed]\AppData\Local\Temp\tmp-86904-gDlI6u6BSBlc\node_modules\nx\src\command-line\migrate\migrate.js:178:17)
at async Migrator.buildPackageJsonUpdates (C:\Users\[removed]\AppData\Local\Temp\tmp-86904-gDlI6u6BSBlc\node_modules\nx\src\command-line\migrate\migrate.js:118:33)
at async Migrator.migrate (C:\Users\[removed]\AppData\Local\Temp\tmp-86904-gDlI6u6BSBlc\node_modules\nx\src\command-line\migrate\migrate.js:84:9)
at async generateMigrationsJsonAndUpdatePackageJson (C:\Users\[removed]\AppData\Local\Temp\tmp-86904-gDlI6u6BSBlc\node_modules\nx\src\command-line\migrate\migrate.js:769:78)
at async C:\Users\[removed]\AppData\Local\Temp\tmp-86904-gDlI6u6BSBlc\node_modules\nx\src\command-line\migrate\migrate.js:1048:13
at async handleErrors (C:\Users\[removed]\AppData\Local\Temp\tmp-86904-gDlI6u6BSBlc\node_modules\nx\src\utils\handle-errors.js:8:24)
at async Object.handler (C:\Users\[removed]\AppData\Local\Temp\tmp-86904-gDlI6u6BSBlc\node_modules\nx\src\command-line\migrate\command-object.js:21:43)
I see some other issues recommending renaming "@nx/linter" to "@nx/eslint" as that is documented. But I was under the impression the nx migrate command would handle that? Also I am not sure about where that is supposed to be renamed if that is the solution. In the project.json file? Not really sure what to do about this. A quick search of this issue returns only one result pointing to here, which is not helpful.
Expected Behavior
I expect the nx migrate command to properly generate the migrations.json file...? Not sure what else to say here.
Current Behavior
Attempting to upgrade an angular 16 project to 18, however I assume I need to upgrade nx as well. I am currently using 16.3.2, but I have installed nx 20.1.2 globally. Running the nx migrate latest command on the project results in the following error:
I see some other issues recommending renaming "@nx/linter" to "@nx/eslint" as that is documented. But I was under the impression the nx migrate command would handle that? Also I am not sure about where that is supposed to be renamed if that is the solution. In the project.json file? Not really sure what to do about this. A quick search of this issue returns only one result pointing to here, which is not helpful.
Expected Behavior
I expect the nx migrate command to properly generate the migrations.json file...? Not sure what else to say here.
GitHub Repo
No response
Steps to Reproduce
Nx Report
Failure Logs
Package Manager Version
10.8.2
Operating System
Additional Information
No response
The text was updated successfully, but these errors were encountered: