Closed pmosconi closed 2 years ago
Hi there! My team has faced the same issue, we found out that commenting the module unlocks the septup phase and the compilation succeed, then if we uncomment the module it succeeds! So it seems that there is a problem with the compilation. Any idea about this? thanks!
Hi, @gerardcastell and @pmosconi,
Thank you for reporting this. Can you try migrating to the latest version? Does it also break?
Hi @meeroslav , I couldn't try it yet but I am pretty sure it is strongly related with this issue, hence it is likely fixed!
I tried migrating nx-examples
from version 14.0.5 (commit: https://github.com/nrwl/nx-examples/commit/62bd0077527c2b14be5b3a75bb95e8219aee8ce3) to 14.4.2 which includes the above mentioned add-swc-deps-again
migration.
I could not reproduce the migration or serve error.
This issue has been automatically marked as stale because it hasn't had any recent activity. It will be closed in 14 days if no further activity occurs. If we missed this issue please reply to keep it active. Thanks for being a part of the Nx community! 🙏
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.
Current Behavior
Migration fails when upgrading from nx 14.1.7 to 14.4.2 In particular, migrations "add-swc-deps" and "add-swc-deps-again" return error
Cannot find module './typescript/compilation'
Regardless I tried to start any application with nx serve application and it fails with errorCannot find module '@nrwl/workspace/src/utilities/buildable-libs-utils'
Expected Behavior
What is the behavior that you expect to happen? 1) Migration to complete successfully 2) Applications to start
Is this a regression? .i.e Did this used to be the behavior at one point? No
Steps to Reproduce
Can you reproduce this on https://github.com/nrwl/nx-examples? YES, even though the error for
nx serve
is differentIf so, open a PR with your changes and link it below. PR is not applicable, se below for commands to reproduce
Failure Logs
These logs come from using https://github.com/nrwl/nx-examples repo 1) run
npx nx migrate latest
-> success 2) runnpx nx migrate --run-migrations
-> error:3) run
npx nx serve cart
--> error:Environment