-
Notifications
You must be signed in to change notification settings - Fork 2.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error to execute: migration-v10-missing-injectable #3464
Comments
I have the same issue. Monkey patching the angular/core file to add workspace.json helped me to the next migration. File :
Next error:
Of course I have no ng available when I rely on the Nx CLI. I can't believe this slipped through Nx's testing or that this fails for everyone. The renamed workspace is something so common it must be handled by Nx for every past Angular migration. Is something else failing in our workspaces? |
Running into the same issue. I worked around it by symlinking workspace.json to angular.json:
@brandonroberts I got a repro. Can't make the repository public as it's not open source, but I can share it with you if that helps. |
I didn't install the Angular CLI. What I did do though, is after the first failure, I rolled back any local changes the upgrade made, created the symlink and ran the upgrade again. Not sure if that made the difference but it's what worked for me. |
Just leaving an update here, but we are looking into this issue for a more permanent fix. The workaround mentioned above works for now. |
Has anyone tried this with the latest release? I believe we landed some changes for better support inside a "vanilla" Nx workspace |
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. |
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
The command
nx migrate --run-migrations=migrations.json
is giving me the error:After I talk with @devversion about this problem, I realize that Angular migration only checks for
angular.json
and.angular.json
files to find the projects inside the workspace.Since NX workspace is defined on
workspace.json
, the migration can't find any project to migrate.I put the logs from the execution in the logs section.
Expected Behavior
Migrate
Steps to Reproduce
A project with two or more apps and a few libraries
Logs
Environment
nx : Not Found
@nrwl/angular : 10.0.7
@nrwl/cli : 10.0.7
@nrwl/cypress : 10.0.7
@nrwl/eslint-plugin-nx : 10.0.7
@nrwl/express : Not Found
@nrwl/jest : 10.0.7
@nrwl/linter : 10.0.7
@nrwl/nest : Not Found
@nrwl/next : Not Found
@nrwl/node : 10.0.7
@nrwl/react : Not Found
@nrwl/schematics : Not Found
@nrwl/tao : 10.0.7
@nrwl/web : Not Found
@nrwl/workspace : 10.0.7
typescript : 3.9.7
The text was updated successfully, but these errors were encountered: