Parsing error ESLint was configured to run on tsconfigRootDirjestconfigjs using parserOptionsproject tsconfigRootDirtsconfigjson
This error message indicates that there is an issue with the ESLint configuration in your project. It seems that ESLint is configured to run on the jest.config.js file using parserOptions.project, but it is unable to find the corresponding tsconfig.json file in the root directory.
To fix this error, you can try the following steps:
-
Check the location of your
tsconfig.jsonfile and make sure it is in the root directory of your project. -
Update the
parserOptions.projectproperty in your ESLint configuration to point to the correct location of thetsconfig.jsonfile. For example, if yourtsconfig.jsonfile is located in a subfolder calledconfig, you can update the property as follows:"parserOptions": { "project": "./config/tsconfig.json" } -
Save your changes and try running ESLint again. The error should be resolved.
If you continue to experience issues, you may need to review your ESLint configuration and ensure that it is set up correctly for your project
原文地址: https://www.cveoy.top/t/topic/cnWM 著作权归作者所有。请勿转载和采集!