7.0.0 tsconfig errors (The file must be included) & (File not found)
See original GitHub issueWhen I migrate to v7.0.0 with linting in package.json scripts such as:
tsc --project ./src/tsconfig.dev.json --noEmit && eslint **/*.{ts,json,js} *.* .*.js
& eslintrc config with
parserOptions: {
project: './src/tsconfig.dev.json',
extraFileExtensions: ['.json'],
},
have a list of errors (package.json & even *.spec files!):
C:\Projects\systemjs-ts-es6-vue\src\tsconfig.dev.json
0:0 error Parsing error: File 'c:\projects\systemjs-ts-es6-vue\src\tsconfig.dev.json' not found
C:\Projects\systemjs-ts-es6-vue\package-lock.json
0:0 error Parsing error: "parserOptions.project" has been set for @typescript-eslint/parser.
The file does not match your project config: package-lock.json.
The file must be included in at least one of the projects provided
C:\Projects\systemjs-ts-es6-vue\package.json
0:0 error Parsing error: "parserOptions.project" has been set for @typescript-eslint/parser.
The file does not match your project config: package.json.
The file must be included in at least one of the projects provided
Test project before migrating
Issue Analytics
- State:
- Created 4 years ago
- Comments:10 (2 by maintainers)
Top Results From Across the Web
Solve or get rid of pattern matching error in tsconfig.json
In my TypeScript application I get an error in the tsconfig.json file, mentioning to not find an index.ts due to the matching of...
Read more >Migration Guide | Cypress Documentation
Migrating to Cypress 12.0 This guide details the changes and how to change your code to migrate to Cypress version 12.0.
Read more >@vue/eslint-config-airbnb-with-typescript - npm package | Snyk
Looks like @vue/eslint-config-airbnb-with-typescript is missing a ... The file must be included in at least one of the projects provided.
Read more >ts-node - NPM Package Overview - Socket.dev
Load files , include and exclude from tsconfig.json on startup. This may avoid certain typechecking failures. See Missing types for details.
Read more >fork-ts-checker-webpack-plugin - npm
7.0.0 -alpha.11 • Public • Published 9 months ago ... configFile), The base path for finding files specified in the tsconfig.json .
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@iamturns All these errors not related to 7.0 version but tsconfig with adding
parserOptions
section (tested with eslint-config-airbnb-typescript 6.3.1)Only this comment helps me to avoid many errors.
But link on tsconfig file (which is configured in parserOption) still raise error:
My folder named
Projects
notprojects
=( Win10Just excluded this file with new glob negation:
"lint": "tsc --project ./src/tsconfig.dev.json --noEmit && eslint **/[!tsconfig.lint]*.{ts,json,js} *.* .*.js"
But now (with parserOptions & v6.3.1) linting is veeeeery slow =( typescript-eslint/releases/tag/v2.0.0: