nrwl / nx

Smart Monorepos · Fast CI
https://nx.dev
MIT License
23.44k stars 2.33k forks source link

eslint config file from generator is breaking builds #28388

Open nhhockeyplayer opened 2 days ago

nhhockeyplayer commented 2 days ago

Current Behavior

generated eslint javascript file is breaking everything

eslint.config.js

const nx = require('@nx/eslint-plugin');
const baseConfig = require('../../../../.eslintrc.json');

module.exports = [
  ...baseConfig,
  {

Expected Behavior

builds should run without being interrupted

GitHub Repo

No response

Steps to Reproduce

generate library /Users/meanstack02/nhhockeyplayer/node_modules/.bin/nx g @nx/angular:library --directory=libs/shared/root/ui-styles --buildable=true --lazy=false --name=ui-styles --publishable=true --routing=false --compilationMode=partial --displayBlock=true --flat=true --importPath=@nhhockeyplayer/shared-root-ui-styles --prefix=ui-styles --selector=ui-styles --skipSelector=true --skipTests=true --style=scss "--tags=\"scope:public, type:ui, target:all\"" --viewEncapsulation=Emulated --no-interactive try to generate another /Users/meanstack02/nhhockeyplayer/node_modules/.bin/nx g @nx/angular:library --directory=libs/shared/root/ui-assets --buildable=true --lazy=false --name=ui-assets --publishable=true --routing=false --compilationMode=partial --displayBlock=true --flat=true --importPath=@nhhockeyplayer/shared-root-ui-assets --prefix=ui-assets --selector=ui-assets --skipSelector=true --skipTests=true --style=scss "--tags=\"scope:public, type:ui, target:all\"" --viewEncapsulation=Emulated --no-interactive

everything there after fails to run

Nx Report

even nx report fails with error log

nx report

NX Report complete - copy this into the issue template

Node : 20.18.0 OS : darwin-x64 Native Target : x86_64-macos yarn : 1.22.22

nx (global) : 20.0.0 nx : 20.0.0 @nx/js : 20.0.0 @nx/jest : 20.0.0 @nx/eslint : 20.0.0 @nx/workspace : 20.0.0 @nx/angular : 20.0.0 @nx/cypress : 20.0.0 @nx/devkit : 20.0.0 @nx/eslint-plugin : 20.0.0 @nx/node : 20.0.0 @nx/storybook : 20.0.0 @nx/web : 20.0.0 @nx/webpack : 20.0.0 typescript : 5.5.4

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

Community plugins: @ionic/angular : 8.3.2 @ngrx/component : 18.0.2 @ngrx/component-store : 18.0.2 @ngrx/effects : 18.0.2 @ngrx/entity : 18.0.2 @ngrx/operators : 18.0.2 @ngrx/router-store : 18.0.2 @ngrx/schematics : 18.0.2 @ngrx/store : 18.0.2 @ngrx/store-devtools : 18.0.2 @nxext/capacitor : 19.1.2 @nxext/ionic-angular : 19.1.2

⚠️ Unable to construct project graph. Failed to process project graph. Run "nx reset" to fix this. Please report the issue if you keep seeing it. Failed to process project graph. Run "nx reset" to fix this. Please report the issue if you keep seeing it. An error occurred while processing files for the @nx/eslint/plugin plugin.

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

Additional Information

can someone please prioritize and release a patch to this all development is being hampered these lapses takes down everything

nhhockeyplayer commented 2 days ago

this was cited back in june this area continues to be subject of repeat regressions eslint

https://github.com/nrwl/nx/issues/26469

can a patch be prioritized please and try to make it hold long term no one wants to hear all commands are failing but when this area gets hit everything gets taken out

thanks for an awesome product

waiting day to day for patch so elite high velocity development can proceed

if anyone can issue a temporary workaround that would be very much appreciated

nhhockeyplayer commented 1 day ago

I worked out alot of my issues

this one though is sticking

and should be prioritized high its producing alot of different variations for developers creating issues to track

if you patch this eslint bug it should fix alot users are seeing ansd stop the torrent of issues

still waiting on your best thanks for an awesome product !!!

nhhockeyplayer commented 1 day ago

Hi Colum,

I added you as collaborator to my repo at

https://github.com/nhhockeyplayer/meanstacknh

main branch

for you to take a peek and see what didnt migrate that caused me to chase up this bug by creating new workspaces. I have 2 issues

  1. my repo wont migrate (it acts like it did but really didnt)
  2. nx-console UI dropdown refuses to come up and render

Im using latest JetBRAINS webstorm 2024.1.5

Im really stuck in the mudd everything builds fine but when I try to take flight and get traction those two issues have me pinned

Im spending a ton of time on this hopefully it can be a happy friday when I wake up after 12pm noon today and see you solved it for me : ) thanks for any help

feel free to cut your own branch and stomp away on it until it runs the nx-console UI dropdown and migrates to where it should be