nx icon indicating copy to clipboard operation
nx copied to clipboard

cannot generate app after removing app

Open nhhockeyplayer opened this issue 1 year ago • 1 comments

Current Behavior

this bug was hampering removal but the json was instrumented so I could proceed to remove the app https://github.com/nrwl/nx/issues/28323

after app removal subsequent app creation fails

nx-console fails to render its UI from within IDE using SHIFT-APT-O

nx g @nx/angular:app --directory=apps --name=admin --style=scss --bundler=esbuild  --e2eTestRunner=none --skipTests=true --ssr=false --projectNameAndRootFormat=derived --prefix=app --port=4200 --strict=true --linter=eslint --tags="scope:public,type:app,target:all"

 NX   Failed to process project graph. Run "nx reset" to fix this. Please report the issue if you keep seeing it.

Pass --verbose to see the stacktraces.

Expected Behavior

app should create gracefully

GitHub Repo

No response

Steps to Reproduce

npx create-nx-workspace@latest

create app and its corresponding e2e

nx g @nx/workspace:remove stupid-app-e2e

nx g @nx/workspace:remove stupid-app

nx g @nx/angular:app --directory=apps --name=admin --style=scss --bundler=esbuild  --e2eTestRunner=none --skipTests=true --ssr=false --projectNameAndRootFormat=derived --prefix=app --port=4200 --strict=true --linter=eslint --tags="scope:public,type:app,target:all"

Nx Report

nx report

NX Report complete - copy this into the issue template

Node : 22.4.1 OS : darwin-x64 Native Target : x86_64-macos npm : 10.8.1

nx (global) : 19.8.4 nx : 19.8.4 @nx/js : 19.8.4 @nx/linter : 19.8.4 @nx/eslint : 19.8.4 @nx/workspace : 19.8.4 @nx/angular : 19.8.4 @nx/devkit : 19.8.4 @nrwl/tao : 19.8.4 @nx/web : 19.8.4 @nx/webpack : 19.8.4 typescript : 5.5.4

Registered Plugins: @nx/cypress/plugin @nx/eslint/plugin

⚠️ Unable to construct project graph. Could not load plugin @nx/cypress/plugin LoadPluginError: Could not load plugin @nx/cypress/plugin at loadNxPluginAsync (/Users/meanstack02/2024/monorepo/node_modules/nx/src/project-graph/plugins/loader.js:208:15) at process.processTicksAndRejections (node:internal/process/task_queues:95:5) at async load (/Users/meanstack02/2024/monorepo/node_modules/nx/src/project-graph/plugins/isolation/plugin-worker.js:26:30) at async consumeMessage (/Users/meanstack02/2024/monorepo/node_modules/nx/src/project-graph/plugins/isolation/messaging.js:38:26)

Failure Logs

NX Failed to process project graph. Run "nx reset" to fix this. Please report the issue if you keep seeing it.

Pass --verbose to see the stacktraces.

Package Manager Version

yarn 1.22.22

Operating System

  • [x] macOS
  • [ ] Linux
  • [ ] Windows
  • [ ] Other (Please specify)

Additional Information

No response

nhhockeyplayer avatar Oct 07 '24 00:10 nhhockeyplayer

I'm failing to reproduce this.

If you can provide any kind of repo where this is consistently reproducible, it will make a resolution easier and faster

Coly010 avatar Oct 15 '24 11:10 Coly010

This issue has been automatically marked as stale because no reproduction was provided within 7 days. Please help us help you. Providing a repository exhibiting the issue helps us diagnose and fix the issue. Any time that we spend reproducing this issue is time taken away from addressing this issue and other issues. This issue will be closed in 21 days if a reproduction is not provided. If a reproduction has been provided, please reply to keep it active. Thanks for being a part of the Nx community! 🙏

github-actions[bot] avatar Oct 23 '24 00:10 github-actions[bot]

I'm failing to reproduce this.

If you can provide any kind of repo where this is consistently reproducible, it will make a resolution easier and faster

Hi Colum, Your added as collaborator for https://github.com/nhhockeyplayer/meanstacknh

I checked in my latest.

#main branch

Now I have been thru migrations on this repo since version 10

Its been fragmented along the way

But I have it so everything is building and its relatively clean to peek at.

Im receiving a variety of errors... if you look at my root folder .clean.zsh my build script nukes some temp files and cache files maybe I been shooting myself in the foot. I commented them all out. Angular cache was posing problems on an assignment for me last year so I build with angular cache off for most part.

So I dont know to what extent nx cache is helping or hurting but Im building with cache untouched for now.

Feel free to cut a branch and clean things up if you like but I have been stuck in Nx build territory for while. I completely cut off storybook because that too was causing workspace issues and Im not getting enough time to do business logic in my code.

Again if you want to take a swipe at this its a formidable repo

lot of good stuff... sass design system and some nice OOP

still hoping to jump into the fast lane again

nhhockeyplayer avatar Oct 27 '24 07:10 nhhockeyplayer

This issue has been automatically marked as stale because no reproduction was provided within 7 days. Please help us help you. Providing a repository exhibiting the issue helps us diagnose and fix the issue. Any time that we spend reproducing this issue is time taken away from addressing this issue and other issues. This issue will be closed in 21 days if a reproduction is not provided. If a reproduction has been provided, please reply to keep it active. Thanks for being a part of the Nx community! 🙏

github-actions[bot] avatar Nov 12 '24 00:11 github-actions[bot]

I'm failing to reproduce this.

If you can provide any kind of repo where this is consistently reproducible, it will make a resolution easier and faster

Hi Colum,

you already have collaborator access to my repo

https://github.com/nhhockeyplayer/meanstacknh

nhhockeyplayer avatar Nov 14 '24 12:11 nhhockeyplayer

Have you checked that this fix does not also fix this issue? https://github.com/nrwl/nx/issues/28388#issuecomment-2447048602

Coly010 avatar Nov 14 '24 14:11 Coly010

Cannot reproduce with v20.1.0

closing

nhhockeyplayer avatar Nov 14 '24 17:11 nhhockeyplayer

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[bot] avatar Dec 15 '24 00:12 github-actions[bot]