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:

  1. Check the location of your 'tsconfig.json' file and make sure it is in the root directory of your project.

  2. Update the 'parserOptions.project' property in your ESLint configuration to point to the correct location of the 'tsconfig.json' file. For example, if your 'tsconfig.json' file is located in a subfolder called 'config', you can update the property as follows:

    "parserOptions": {
      "project": "./config/tsconfig.json"
    }
    
  3. 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.

ESLint Parsing Error: Unable to Find tsconfig.json

原文地址: https://www.cveoy.top/t/topic/nuFI 著作权归作者所有。请勿转载和采集!

免费AI点我,无需注册和登录