-
Notifications
You must be signed in to change notification settings - Fork 215
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
Since removing angular.json, IntelliJ/Webstorm IDE no longer shows Angular schematics in menus. #2390
Comments
Yes, there is a way. |
@schreibse I have tried the NX Console plugin, but I struggled to get it to work. When I click the "Generate (UI)" command, nothing happens. When I try the same thing in VS Code, I get this message: "No generators found. Did you run npm/pnpm/yarn install?", which of course I have. I am able to run generators from the terminal, just not in the IDE. (i.e. this works: Unfortunately, my organization is currently stuck on an old version of Node.js, so I'm testing with NX 16. `Node : 16.20.2 nx : 16.10.0
|
Hey! Any chance you could provide me with a minimal repro? Nx Console should be able to render angular schematics just fine, so that's the way to go here. A minimal repro is the fastest way for me to find and fix the issue :) |
I tried creating a new NX 16 workspace with the same properties as my company monorepo and opening it in IntelliJ, but the Generate UI menu works fine there. I also tried making my monorepo's nx.json file match the new one, but I'm still getting the same error. So, I'm not sure yet how to create a minimal repro. @MaxKless Do you have any ideas I could try or any insight on places to look that could cause this error message?:
|
Hmmm interesting. I think maybe this place could be the problem? Maybe there's a dependency in your |
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 theangular.json
file in favor ofproject.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?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
npx create-nx-workspace@latest nx-example-workspace
✔ 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
Nx Report
Failure Logs
Package Manager Version
pnpm 9.15.4
Operating System
Additional Information
No response
The text was updated successfully, but these errors were encountered: