TS18002: The 'files' list in config file 'tsconfig.json' is empty with Cypress 10.0.0
See original GitHub issueCurrent 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:
- Created a year ago
- Comments:6 (2 by maintainers)
Top 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 >
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 Free
Top 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
@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.
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