Skip to content

5.2.0 Regression: error message printing saying Couldn't find tsconfig.json #9048

@CodeTroopers

Description

@CodeTroopers

Current behavior

With version 5.2.0, 5.3.0, 5.4.0, 5.5.0
Using a tsconfig.json in the cypress directory.
Run the command cypress open
The output displays:

Couldn't find tsconfig.json. tsconfig-paths will be skipped

Desired behavior

Use the tsconfig.json : it works with version 5.1.0

Test code to reproduce

tsconfig.json in {root_project _directory}/cypress/

{
	"compilerOptions": {
		"strict": true,
		"sourceMap": false,
		"declaration": false,
		"module": "esnext",
		"moduleResolution": "node",
		"emitDecoratorMetadata": true,
		"esModuleInterop": false,
		"experimentalDecorators": true,
		"importHelpers": true,
		"resolveJsonModule": true,
		"allowSyntheticDefaultImports": true,
		"target": "es6",
		"lib": ["es6", "dom"],
		"types": ["cypress", "node"]
	},
	"include": ["**/*.ts"]
}

Versions

5.2.0, 5.3.0, 5.4.0, 5.5.0
Work with 5.1.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    pkg/serverThis is due to an issue in the packages/server directorytype: regressionA bug that didn't appear until a specific Cy version releasev5.2.0 🐛Issue present since 5.2.0

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions