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
After migrating from version 14 to version 16 of Angular + Nx, the ng generate m/c/s ... command stopped working. It seems that when the angular.json file was deleted, the paths were no longer recognized. Does anyone know how to solve this problem?
For example, if I navigate to the core folder of one of my applications in the terminal, the path will be apps/project2/src/app/core. When I run ng g c in this directory, I get the following error message: InvalidPathException [Error]: Path "/../../../../.." is invalid.
In my project.json for project2, I have "sourceRoot": "apps/project2/src".
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
After migrating from version 14 to version 16 of Angular + Nx, the ng generate m/c/s ... command stopped working. It seems that when the angular.json file was deleted, the paths were no longer recognized. Does anyone know how to solve this problem?
For example, if I navigate to the core folder of one of my applications in the terminal, the path will be apps/project2/src/app/core. When I run ng g c in this directory, I get the following error message: InvalidPathException [Error]: Path "/../../../../.." is invalid.
In my project.json for project2, I have "sourceRoot": "apps/project2/src".
Thanks.
Beta Was this translation helpful? Give feedback.
All reactions