This was only found in the past week of dev. No clue what change made this happen. We've got build errors for Prettier, and when you open that file, we've got a parsing error. I'm about 2 days into trying to figure out WTF is going on here with no luck.
Expected lint and beautify to work, as they always do.
What actually happened?
Format on save doesn't work. Linting during build process fails. Errors below found. When you open a TS/TSX file, we now get the parsing error for all of them.
// build error
error ESLint: prettier.resolveConfig.sync is not a function Occurred while linting /path-to-file/*.tsx:2 Rule: "prettier/prettier"
// open file error
Parsing error: Cannot read file 'tsconfig.json'.
Problem
This was only found in the past week of dev. No clue what change made this happen. We've got build errors for Prettier, and when you open that file, we've got a parsing error. I'm about 2 days into trying to figure out WTF is going on here with no luck.
Do you guys have any ideas?
Versions
Config Files
ESLint Config:
TS Config:
Prettier Config:
NVM Config:
What source code are you linting?
Next.js TS React app, TS/TSX files.
What did you expect to happen?
Expected lint and beautify to work, as they always do.
What actually happened?
Format on save doesn't work. Linting during build process fails. Errors below found. When you open a TS/TSX file, we now get the parsing error for all of them.