Skip to content

"No valid Angular config file found for the chosen workspace" on monorepo workspace with multiple root folders per project #415

Closed Answered by cyrilletuzi
digeomel asked this question in Q&A
Discussion options

You must be logged in to vote

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:

  • TypeScript will raise errors about experimental decorators because it cannot see the root tsconfig.json,
  • launching 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…

Replies: 4 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by cyrilletuzi
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #414 on February 07, 2021 19:00.