I am facing an issue where TS doesn't see type definitions. I get:
Could not find a declaration file for module '@eslint/eslintrc'. '.../node_modules/@eslint/eslintrc/dist/eslintrc.cjs' implicitly has an 'any' type.
There are types at '.../node_modules/@eslint/eslintrc/lib/types/index.d.ts', but this result could not be resolved under your current 'moduleResolution' setting. Consider updating to 'node16', 'nodenext', or 'bundler'.
Following the errors suggestion to change moduleResolution doesn't help.
The problem seems to be that @eslint/eslintrc files are .cts. Specifically, the file with type definitions is node_modules/@eslint/eslintrc/dist/eslintrc.d.cts, but your package.json says they should be in node_modules/@eslint/eslintrc/dist/eslintrc.d.ts.
Please let me know if I'm missing something.
I am facing an issue where TS doesn't see type definitions. I get:
Following the errors suggestion to change
moduleResolutiondoesn't help.The problem seems to be that
@eslint/eslintrcfiles are.cts. Specifically, the file with type definitions isnode_modules/@eslint/eslintrc/dist/eslintrc.d.cts, but yourpackage.jsonsays they should be innode_modules/@eslint/eslintrc/dist/eslintrc.d.ts.Please let me know if I'm missing something.