question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

generate @nrwl/angular:application -> Expected apps/apps/myapp/tsconfig.json to exist. Please create one.

See original GitHub issue

Current Behavior

When I run command: nx generate @nrwl/angular:application --name=myapp --style=scss --e2eTestRunner=none --linter=eslint --prefix=myapp --routing --strict --unitTestRunner=jest i got this error: Expected apps/apps/myapp/tsconfig.json to exist. Please create one.

This project was created with nx 7 and upgraded every new release and now when I upgraded to 12.5 I noticed this behavior. I haven’t used this command for a while now so it could broke earlier. When I create totally new project with nx I do not have such problems so it could be something inside my project files but I can’t find the reason.

Expected Behavior

To have angular application created.

Failure Logs

Expected apps/apps/myapp/tsconfig.json to exist. Please create one.

Environment

` Node : 14.17.2 OS : darwin x64 npm : 6.14.13

nx : Not Found @nrwl/angular : 12.5.1 @nrwl/cli : 12.5.1 @nrwl/cypress : 12.5.1 @nrwl/devkit : 12.5.1 @nrwl/eslint-plugin-nx : 12.5.1 @nrwl/express : Not Found @nrwl/jest : 12.5.1 @nrwl/linter : 12.5.1 @nrwl/nest : Not Found @nrwl/next : Not Found @nrwl/node : Not Found @nrwl/react : Not Found @nrwl/schematics : Not Found @nrwl/tao : 12.5.1 @nrwl/web : Not Found @nrwl/workspace : 12.5.1 @nrwl/storybook : 12.5.1 @nrwl/gatsby : Not Found typescript : 4.2.4`

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:6 (1 by maintainers)

github_iconTop GitHub Comments

8reactions
dandouglascommented, Dec 8, 2021

I had the same problem after migrating an existing Angular repo to an NX workspace.

The issue for me was the following line in the angular.json file:

"newProjectRoot": "projects"

After removing it all the generator commands worked as expected.

2reactions
AhsanAyazcommented, Jan 31, 2022

@dandouglas that helped. Thanks 👍🏼 Would be nice to have this fixed by the team.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Angular Nx Nrwl - Cannot parse tsconfig.base.json
I got this error when there was a comma ',' at the end of the paths list. "@portal/*": ["apps/portal/src/app/*"], <<< REMOVE this comma....
Read more >
@nrwl/angular:application | Nx
Create an application with stricter type checking and build optimization options. standaloneConfig. boolean. Split the project configuration ...
Read more >
nrwl-nx/community - Gitter
so i create an application let`s says its (main app) and i create a library ... .generated.json [tsl] ERROR TS5058: The specified path...
Read more >
2 - Creating an Nx Workspace - Angular and NgRx - GitBook
We will be building out the beginning of two applications a customer portal and an admin ... Run the below command in a...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found