Skip to content
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

Getting Cannot find project 'cli' error when following the tutorial #10037

Closed
1 of 4 tasks
yuchien302 opened this issue Apr 28, 2022 · 4 comments
Closed
1 of 4 tasks

Getting Cannot find project 'cli' error when following the tutorial #10037

yuchien302 opened this issue Apr 28, 2022 · 4 comments

Comments

@yuchien302
Copy link

Documentation issue

  • Reporting a typo
  • Reporting a documentation bug
  • Documentation improvement
  • Documentation feedback

Is there a specific documentation page you are reporting?

https://nx.dev/core-tutorial/02-create-cli

Additional context or description

I followed the tutorial, and it keep saying Cannot find project 'cli'
image

Turns out I have to run nx reset to get it works. Wasted an hour figuring this out.

@AgentEnder
Copy link
Member

This is a bug, and should be fixed by #10031

@AgentEnder
Copy link
Member

I'm going to go ahead and close this, since the PR is merged and will be included in 14.0.4

@itunbridgedev
Copy link

This tutorial series has been very obnoxious. First, on step) this command fails:
npx create-nx-workspace@latest
Error:
NX Nx failed to install dependencies
Exit code: 1

After googling, I found this so article which mentions NX Repo path having spaces in it (did not apply) and a recommendation to use this command instead to install an earlier version:
npx create-nx-workspace@13.9.3

After successfully installing this earlier version, I ran into another issue trying to run npx nx serve blog - Error: Cannot find project 'blog' which lead me to this issue which explains the workspace.json file is used to configure project paths (the tutorial mentions nothing about this).

Then on step 2 I'm again blocked when trying to run npx nx serve cli - Error: Could not find project "cli"

I realize this bug was fixed in 14.0.4, but step 1 forced me to use an earlier version. the suggested npx nx reset command doesn't seem to fix the issue.

@github-actions
Copy link

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.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Mar 21, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants