question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

7.0.0 tsconfig errors (The file must be included) & (File not found)

See original GitHub issue

When 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:closed
  • Created 4 years ago
  • Comments:10 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
viT-1commented, Feb 13, 2020

@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.

parserOptions:  {
    ...,
    createDefaultProgram: true,        
},

But link on tsconfig file (which is configured in parserOption) still raise error:

C:\Projects\systemjs-ts-es6-vue\src\tsconfig.lint.json
  0:0  error  Parsing error: File 'c:\projects\systemjs-ts-es6-vue\src\tsconfig.lint.json' not found

My folder named Projects not projects =( Win10

Just excluded this file with new glob negation: "lint": "tsc --project ./src/tsconfig.dev.json --noEmit && eslint **/[!tsconfig.lint]*.{ts,json,js} *.* .*.js"

0reactions
viT-1commented, Feb 13, 2020

But now (with parserOptions & v6.3.1) linting is veeeeery slow =( typescript-eslint/releases/tag/v2.0.0:

We discovered that this was a common performance pitfall, and could increase lint times by huge amounts.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found