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.

Error: Cannot find project 'blog' on Core Nx Tutorial - Step 1

See original GitHub issue

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/01-create-blog

Additional context or description

After following all the steps in the page, the build and serve commands both fail with Cannot find project 'blog' is there any step missing?

I tried adding { "blog": "packages/blog"} to the projects property of workspace.json but then I got different errors about missing files. So if that’s the way, there’s more missing configuration.

Issue Analytics

  • State:closed
  • Created a year ago
  • Reactions:12
  • Comments:11 (2 by maintainers)

github_iconTop GitHub Comments

14reactions
joncarlsoncommented, Jul 8, 2022

Encountered the same issue. If you delete workspace.json it works as expected.

The docs state that: The workspace.json file in the root directory is optional. It's used if you want to list the projects in your workspace explicitly instead of Nx scanning the file tree for all project.json and package.json files..

It seems that either the tutorial should be updated to mention adding ‘blog’ to workspace.json or generating shouldn’t create that file by default.

6reactions
medmincommented, Oct 21, 2022

https://nx.dev/getting-started/package-based-repo-tutorial#getting-started-with-package-based-repos

this guide does not work

I have error “NX : Cannot find project ‘is-even’”

Read more comments on GitHub >

github_iconTop Results From Across the Web

Core Nx Tutorial - Step 1: Create Eleventy Blog
In this tutorial you create multiple projects in a monorepo and take advantage of the core Nx features with a minimum of configuration....
Read more >
nrwl-nx/community - Gitter
I'm trying to debug an application that uses a library, and I'm not hitting breakpoints in the library in vscode. The angular.json looks...
Read more >
Tutorial - First Steps with Nx and Angular Architecture
Learn to build sustainable Angular architectures! ... Nx is a famous extension for the Angular CLI provided by former Angular core team members....
Read more >
Setup a Monorepo with PNPM workspaces and speed it up ...
Important: If you are already familiar with the setup and configuration of a new PNPM workspace, feel free to skip to the part...
Read more >
Create Your First Custom Angular CLI Schematic with Nx - Auth0
TL;DR In this tutorial, we're going to learn the basics of Nrwl's tool Nx, as well as how to create a custom workspace...
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