nrwl / nx

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

Linting fails occasionally on CI #27870

Open ghost opened 2 months ago

ghost commented 2 months ago

Current Behavior

Linting is sometimes failing in CI, not consistently due to an error with prettier/prettier rule. We're using prettier v3.3.3

Expected Behavior

Should not fail

GitHub Repo

No response

Steps to Reproduce

Nothing specific, just nx affected:lint failing occasionally.

Nx Report

Node   : 20.15.1
OS     : darwin-arm64
yarn   : 4.4.1

nx (global)        : 19.5.7
nx                 : 19.0.0
@nx/js             : 19.0.0
@nx/jest           : 19.0.0
@nx/linter         : 19.0.0
@nx/eslint         : 19.0.0
@nx/workspace      : 19.0.0
@nx/cypress        : 19.0.0
@nx/devkit         : 19.0.0
@nx/eslint-plugin  : 19.0.0
@nx/node           : 19.0.0
@nx/plugin         : 19.0.0
@nx/react          : 19.0.0
@nx/storybook      : 19.0.0
@nrwl/tao          : 19.0.0
@nx/vite           : 19.0.0
@nx/web            : 19.0.0
@nx/webpack        : 19.0.0
typescript         : 5.5.4
---------------------------------------
Community plugins:
nx-stylelint : 17.1.5
---------------------------------------
Local workspace plugins:
         @island/workspace

Failure Logs

Linting "utils-arrays"...

 NX   Cannot read properties of undefined (reading 'message')

Occurred while linting /home/runner/work/apps/apps/libs/utils/arrays/project.json:1
Rule: "prettier/prettier"
Pass --verbose to see the stacktrace.

Package Manager Version

No response

Operating System

Additional Information

No response

JanWahl commented 1 month ago

I have the same problem. I also use node 20 and run the jobs inside the gitlab ci