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.

Collection "@schematics/angular" cannot be resolved.

See original GitHub issue

Current Behavior

Cannot generate angular app/library.

Expected Behavior

Steps to Reproduce

  1. Created new workspace with npx create-nx-workspace@latest --packageManager pnpm
  2. Trying to generate new library with generate @nrwl/angular:library --name=shared-ui --linter=eslint --strict --unitTestRunner=jest
  3. Getting Collection "@schematics/angular" cannot be resolved.

Environment

❯ pnx report

> birk@0.0.0 nx /Users/solshark/Development/wmt/birk
> nx "report"


>  NX  Report complete - copy this into the issue template

  Node : 14.17.5
  OS   : darwin x64
  pnpm : 6.14.2

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

Issue Analytics

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

github_iconTop GitHub Comments

2reactions
solsharkcommented, Sep 15, 2021

I’ve created new project using following command: pnpx create-nx-workspace --package-manager=pnpm

Screenshot 2021-09-15 at 13 39 26

Next, trying to generate new library using plugin for WebStorm: Screenshot 2021-09-15 at 13 47 06

git@github.com:solshark/i6820.git

0reactions
HackPointcommented, Oct 6, 2022

I’ve created new project using following command: pnpx create-nx-workspace --package-manager=pnpm

Screenshot 2021-09-15 at 13 39 26

Next, trying to generate new library using plugin for WebStorm: Screenshot 2021-09-15 at 13 47 06

git@github.com:solshark/i6820.git

I’ve solved it with a direct pnpx nx .... generate .... and so on... you can use it.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Collection "@schematics/angular" cannot be resolved
If you installed angular-cli with -g key, it should be fine. If not, try installing angular-cli globally. Then you could check dependencies.
Read more >
Collection "@igniteui/angular-schematics" cannot be resolved
The schematics collection is added to your project when you install Ignite UI for Angular. Both versions of the tooling allow for generating ......
Read more >
@schematics/angular - npm
Schematics specific to Angular. Latest version: 15.0.4, last published: 9 days ago. Start using @schematics/angular in your project by ...
Read more >
Schematics for libraries - Angular
When you create an Angular library, you can provide and package it with schematics that integrate it with the Angular CLI. With your...
Read more >
Schematic "page" not found in collection "@schematics/angular".
An unhandled exception occurred: Schematic "page" not found in collection "@schematics/angular". · Uninstall and Reinstall angular cli · npm ...
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