Open mirogajdos opened 1 month ago
Same Problem
I also have this issue. Thought I was loosing my mind.
@mirogajdos @jahusa02 @hannovisagie Did npm install
succeed? It looks like the Nx packages were not updated to v20, so the migration entry is missing in node_modules/nx/migrations.json
.
You can try npm install --force
as well, as some ESLint plugins did not update their versions so there could be peer dependencies errors/warnings.
@mirogajdos @jahusa02 @hannovisagie Did
npm install
succeed? It looks like the Nx packages were not updated to v20, so the migration entry is missing innode_modules/nx/migrations.json
.You can try
npm install --force
as well, as some ESLint plugins did not update their versions so there could be peer dependencies errors/warnings.
It installed successfully. I use pnpm and it didn't report any missing peerDeps.
One thing I noticed everytime when running migrate was the warning that the local project doesn't define a package manger field.
Don't know if that's related or not
Going to v19.8.6 and trying again to v20 solved the issue for me. I believe my installation also passed. I will try on my company's repo on Monday. It has had the same issue. (Also I did update to node 22.10.0 and npm 10.9.0 - removed package-lock.json and clean installed.. I had to run npm i
twice as for some reason as it still doesn't get all the deps on the first time after removing lock)
Current Behavior
I'm getting migration errors while trying to upgrade to 20 from 19.8.4. It says that workspace is not up to date but I cannot figure out where is the error and how to get workspace up to date.
Expected Behavior
Migration works
GitHub Repo
No response
Steps to Reproduce
npx nx migrate latest
npm install
npx nx migrate --run-migrations
Nx Report
Node : 22.9.0 OS : linux-x64 Native Target : x86_64-linux npm : 10.8.3
nx : 19.8.4 @nx/js : 19.8.4 @nx/jest : 19.8.4 @nx/linter : 19.8.4 @nx/eslint : 19.8.4 @nx/workspace : 19.8.4 @nx/cypress : 19.8.4 @nx/devkit : 19.8.4 @nx/eslint-plugin : 19.8.4 @nx/nest : 19.8.4 @nx/node : 19.8.4 @nx/plugin : 19.8.4 @nx/react : 19.8.4 @nrwl/tao : 19.8.4 @nx/vite : 19.8.4 @nx/web : 19.8.4 @nx/webpack : 19.8.4 typescript : 5.6.3
Local workspace plugins: @home/workspace-plugin
Failure Logs
NX Running migrations from 'migrations.json'
Running the following migrations:
nx: move-use-daemon-process (Migration for v20.0.0-beta.7)
Running migration nx: move-use-daemon-process
NX Failed to run move-use-daemon-process from nx. This workspace is NOT up to date!
NX Cannot read properties of undefined (reading 'cli')
TypeError: Cannot read properties of undefined (reading 'cli') at isAngularMigration (/home/miro/code/home/apps/node_modules/nx/src/command-line/migrate/migrate.js:1087:15) at executeMigrations (/home/miro/code/home/apps/node_modules/nx/src/command-line/migrate/migrate.js:920:18) at runMigrations (/home/miro/code/home/apps/node_modules/nx/src/command-line/migrate/migrate.js:1009:43) at /home/miro/code/home/apps/node_modules/nx/src/command-line/migrate/migrate.js:1050:19 at async handleErrors (/home/miro/code/home/apps/node_modules/nx/src/utils/handle-errors.js:9:24)
Package Manager Version
No response
Operating System
Additional Information
My nx.json: