Open anjantalatam opened 10 months ago
Will be fix this problem? Can't setting project with eslint using yarn... It makes me sad 😢
It works with newer versions of yarn. IMHO it's unlikely this will be fixed because it's not a security issue. The yarn upgrade is easy and you get a whole bunch of features and performance improvements.
Removing yarn.lock
and reinstalling packages with yarn install
can fix the problem. But it can occur again (for instance, when changing git branches).
UPD from eslint discussion: can be fixed by downgrading strip-ansi
version in package.json
by adding:
"resolutions": {
"strip-ansi": "^6.0.1"
}
Reproduction case: https://github.com/eslint/eslint/discussions/17215#discussioncomment-8075610
yarn version:
1.22.19
Bug: ESLint is throwing the below error when
yarn run lint
is executed given ESLint is installed with yarn.package.json
Complete error:
Here is a discussion from eslint https://github.com/eslint/eslint/discussions/17215#discussioncomment-5983847
yarn run lint
working fine when ESLint is installed with npm or pnpm