Open ccaspanello opened 1 day ago
I've been struggling against this error, but have just found this issue. There seems to be an incompatibility / breaking change in eslint 9.15.
https://github.com/typescript-eslint/typescript-eslint/issues/10338
remove the ^ from the eslint entry in package.json to pin the version and it seems to work fine.
"eslint": "9.14.0",
@bonejon - Thanks for the advice. My current version was "eslint": "^9.8.0",
. Removing the carrot did the trick. I guess when things like this happen (and they will) ... what is the right course of action and can/should NX do anything? I'm new to NX and I like it ... when it work ... when it doesn't it feels like it's hard to debug the "magic" it does.
Current Behavior
When creating a new workspace ES Lint gives me errors. This occurs not only in Webstorm but also on the command line. I've tried this with a React project as well as a NestJS project. I'm not sure what is going on here. The following are steps to reproduce.
NX Version:
v20.1.2
Error
Expected Behavior
I would expect ES lint to work out of the box without further configuration
GitHub Repo
No response
Steps to Reproduce
Create Workspace:
npx create-nx-workspace --pm pnpm
Follow the wizard:
✔ Where would you like to create your workspace? · nx-sandbox ✔ Which stack do you want to use? · react ✔ What framework would you like to use? · none ✔ Integrated monorepo, or standalone project? · integrated ✔ Application name · my-app ✔ Which bundler would you like to use? · vite ✔ Test runner to use for end to end (E2E) tests · cypress ✔ Default stylesheet format · tailwind ✔ Which CI provider would you like to use? · github
NX Creating your v20.1.2 workspace.
✔ Installing dependencies with pnpm ✔ Successfully created the workspace: nx-sandbox. ✔ Nx Cloud has been set up successfully ✔ CI workflow has been generated successfully
NX Your CI setup is almost complete.
Failure Logs
Package Manager Version
No response
Operating System
Additional Information
No response