"No valid Angular config file found for the chosen workspace" on monorepo workspace with multiple root folders per project #415
-
Checks before posting an issue
Configuration
Description of the issueWe have a monorepo (multiple projects and libraries) workspace where the angular.json file resides at the root, and each project is under a How to reproduce the issue
|
Beta Was this translation helpful? Give feedback.
Replies: 4 comments
-
Can you be more specific? Do you mean projects generated by |
Beta Was this translation helpful? Give feedback.
-
What is described here: https://octoperf.com/blog/2019/08/22/kraken-angular-workspace-multi-application-project/#create-a-workspace
|
Beta Was this translation helpful? Give feedback.
-
Then it's normal. Angular sub-applications ( There is a lot of issues coming up doing that, for example:
On the other way, if you open your Angular project normally (ie. at the primary root), and you right-click on the folders inside your sub-applications or sub-libraries where you want to generate things, the extension will detect the sub-project automatically for you. Moving this to discussions as it's not a bug. |
Beta Was this translation helpful? Give feedback.
-
Ok, thank you for your time! 👍 |
Beta Was this translation helpful? Give feedback.
Then it's normal. Angular sub-applications (
ng g application
) and sub-libraries (ng g library
) are not designed to be opened as workspaces directly.There is a lot of issues coming up doing that, for example:
tsconfig.json
,ng g component
inside the library root is not working (error:Could not find an NgModule
), so if the Angular CLI itself is not working, the extension certainly can't.On the other way, if you open your Angular project normally (ie. at the primary root), and you right-click on the folders inside your sub-applications or sub-libraries where you want to generate things, t…