prettier / eslint-plugin-prettier

ESLint plugin for Prettier formatting
https://npm.im/eslint-plugin-prettier
MIT License
3.33k stars 182 forks source link

Synckit seems incompatible with Node 14.18.1 #618

Closed ghost closed 10 months ago

ghost commented 11 months ago

I'm getting a module not found error when running eslint in Node v14.18.1.

What version of eslint are you using? 8.34.0

What version of prettier are you using? 3.1.0

What version of eslint-plugin-prettier are you using? 5.0.1

What actually happened?

> eslint --ext .js,.jsx,.ts,.tsx --max-warnings 0 .
Oops! Something went wrong! :(
ESLint: 8.34.0
Error: Cannot find module 'node:fs'
Require stack:
- /builds/abc/node_modules/synckit/lib/index.cjs
- /builds/abc/node_modules/eslint-plugin-prettier/eslint-plugin-prettier.js
- /builds/abc/node_modules/@eslint/eslintrc/dist/eslintrc.cjs
Occurred while linting /builds/abc/.eslintrc.js:1
JounQin commented 11 months ago

I don't quite understand

https://2ality.com/2021/12/node-protocol-imports.html#support-for-node%3A-imports

Are you sure you're on Node v14.18.1?

JounQin commented 10 months ago

Close due to no response.