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.

TS18002: The 'files' list in config file 'tsconfig.json' is empty with Cypress 10.0.0

See original GitHub issue

Current behavior

We have an old cypress project running Cypress 9.5 version and uses support files that in typescript. The tsconfig.js looks like this

{
  "compilerOptions": {
    "strict": true,
    "baseUrl": "../node_modules",
    "target": "es5",
    "lib": [
      "es5",
      "dom"
    ],
    "types": [
      "cypress",
      "cypress-wait-until"
    ]
  },
  "include": [
    "*/cypress/support/*.ts"
  ]
}

After upgrading to cypress 10.0.0, I am unable to run any of the tests and they fail with the following error.

Webpack Compilation Error
[tsl] ERROR
      TS18002: The 'files' list in config file 'tsconfig.json' is empty.

Any reason why that would happen and what should be added as part of the files property ?

Desired behavior

Upgrade to Cypress 10.0 should not cause any issues to the old projects

Test code to reproduce

This is a setup/configuration problem not with the code.

Cypress Version

10.0.0

Other

No response

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:6 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
flotwigcommented, Jun 6, 2022

@IrfanSyed-PSC this is indeed a duplicate of #18938 then, since you don’t have a root tsconfig. Create a valid tsconfig.json at the root of your project and this should go away.

Closing as duplicate.

0reactions
IrfanSyed-PSCcommented, Jun 6, 2022

After doing the change, I see the following error. I am guessing it is because of this issue https://github.com/cypress-io/cypress-docker-images/issues/673. Please let me know if its not

image

Read more comments on GitHub >

github_iconTop Results From Across the Web

Protractor - The 'files' list in config file 'tsconfig.json' is empty ...
With reference to this issue on GitHub, I've figured out the solution. The problem is with ts-node version. My version was 1.2.x and...
Read more >
Extending the Cypress Config File
In this blog post I will show how to implement extends syntax in the Cypress JSON configuration file without waiting for the Cypress...
Read more >
The 'files' list in config file 'tsconfig.json' is empty after updating ...
On the azure task we get: [error]ERROR: The 'files' list in config file 'tsconfig.json' is empty. ERROR: The 'files' list ...
Read more >
cypress ts18002 the 'files' list in config file 'tsconfig.json' is empty
cypress ts18002 the 'files ' list in config file 'tsconfig.json' is empty技术、学习、经验文章掘金开发者社区搜索结果。掘金是一个帮助开发者成长的社区,cypress ...
Read more >
Configurations in Cypress and How to Disable Default ...
This configuration specifies a list of test files that ignore as a test file. For example, if you have any file under Integration...
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