Closed ThatMate closed 3 years ago
Hi, I updated from nx 8.x to 9.x using this guide https://nx.dev/react/guides/update. Simply running yarn update
won't update the NX specific "metadata" files (like workspace.json). And BTW, the globally installed version of NX does not matter as far as the repo's NX version . All the global NX does (from my experience/knowledge) is forward calls into the repo's specific version of NX. Hence, updating the global version of NX is not enough to update the repo to the next version of NX.
I forgot to follow up this. I cleaned my project, and followed these steps:
nx migrate @nrwl/workspace
git diff package.json
yarn
nx migrate --run-migrations=migrations.json
It worked. I had to manually updated the dependencies that were unrelated to nrwl.
This issue has been closed for more than 30 days. If this issue is still occuring, please open a new issue with more recent context.
Based on this article: https://blog.nrwl.io/nx-cli-distributed-caching-improved-react-support-bazel-support-and-more-in-nx-9-8d55c4becdc4 I tried upgrading my local repo and It caused my React app to not load with Errors mentioned at the bottom of this issue. This is what I have done:
yarn global remove @nrwl/cli
followed byyarn global add @nrwl/cli
nx --version
says 8.9.0.yarn upgrade
in your project.nx serve reactapp
, it fails with the error.There seem to be a document for upgrading v7 to 8 (https://nx.dev/angular/guides/nx7-to-nx8) but none for 8 to 9.
Prerequisites
Expected Behavior
yarn upgrade
should update Nx for a mono-repo build using Nx 8. And this article claims that's the case: https://blog.nrwl.io/nx-cli-distributed-caching-improved-react-support-bazel-support-and-more-in-nx-9-8d55c4becdc4I think there is a typo in the blog is says
yarn update
which does not work.Current Behavior
Update fails
Failure Information (for bugs)
nx serve reactapp
andnx build reactapp
both fails after the upgrade.Steps to Reproduce
yarn upgrade
to update dependenciesnx start reactapp