Skip to content

Since removing angular.json, IntelliJ/Webstorm IDE no longer shows Angular schematics in menus. #2390

Open
@lobo78

Description

@lobo78

Current Behavior

I support an Angular NX monorepo at a company where many developers use the Intellij IDE. Intellij can detect the presence of an Angular application and show Angular schematics in it's menu. However, this appears to depend on the presence of an angular.json file. However, NX removed the angular.json file in favor of project.json files in each app/lib, thus Intellij no longer recognizes it as an Angular app and thus no longer shows schematics in the menu. Is there a way to both use the latest NX and continue to have Angular schematics appear in Intellij?

Image

Image

Expected Behavior

Angular schematics to show in Intellij menu (see screenshots). The screenshots shows Intellij menus once Intellij recognizes an Angular app due to the presence of an angular.json file.

GitHub Repo

No response

Steps to Reproduce

  1. npx create-nx-workspace@latest nx-example-workspace
  2. ✔ Which stack do you want to use? · angular
    ✔ Integrated monorepo, or standalone project? · integrated
    ✔ Application name · nx-example-workspace
    ✔ Which bundler would you like to use? · webpack
    ✔ Default stylesheet format · scss
    ✔ Do you want to enable Server-Side Rendering (SSR) and Static Site Generation (SSG/Prerendering)? · No
    ✔ Test runner to use for end to end (E2E) tests · none
    ✔ Which CI provider would you like to use? · skip
    ✔ Would you like remote caching to make your build faster? · skip
  3. Open workspace in Intellij or Webstorm.
  4. Open File -> New (Notice there is no menu option for Angular Schematics or Angular Dependencies
  5. Right click on a Typescript file in the workspace, go to New (Notice there is no menu option for Angular Schematics or Angular Dependencies)

Nx Report

NX   Report complete - copy this into the issue template

Node           : 18.20.5
OS             : darwin-arm64
Native Target  : aarch64-macos
npm            : 10.8.2

nx                     : 20.3.3
@nx/js                 : 20.3.3
@nx/jest               : 20.3.3
@nx/eslint             : 20.3.3
@nx/workspace          : 20.3.3
@nx/angular            : 20.3.3
@nx/devkit             : 20.3.3
@nx/eslint-plugin      : 20.3.3
@nx/module-federation  : 20.3.3
@nx/web                : 20.3.3
@nx/webpack            : 20.3.3
typescript             : 5.6.3
---------------------------------------
Community plugins:
angular-eslint : 19.0.2

Failure Logs

Package Manager Version

pnpm 9.15.4

Operating System

  • macOS
  • Linux
  • Windows
  • Other (Please specify)

Additional Information

No response

Metadata

Metadata

Assignees

Labels

type: bugSomething isn't working

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions