From ec65a6279ad33c051663cc0adba95181b3861e81 Mon Sep 17 00:00:00 2001 From: Karl Horky Date: Thu, 3 Aug 2023 11:28:18 +0200 Subject: [PATCH] Use old moduleResolution for Cypress Ref: https://github.com/cypress-io/cypress/issues/26308#issuecomment-1663592648 --- tsconfig.json | 18 ++++++++++++++---- 1 file changed, 14 insertions(+), 4 deletions(-) diff --git a/tsconfig.json b/tsconfig.json index 26669df..0ba508c 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -1,6 +1,19 @@ { "$schema": "https://json.schemastore.org/tsconfig", "extends": "eslint-config-upleveled/tsconfig.base.json", + "compilerOptions": { + "jsx": "preserve" + }, + // Old "moduleResolution": "Node" option required for Cypress + // https://github.com/cypress-io/cypress/issues/26308#issuecomment-1663592648 + // + // TODO: Remove when issue is resolved https://github.com/cypress-io/cypress/issues/27448 + "ts-node": { + "compilerOptions": { + "module": "ESNext", + "moduleResolution": "Node" + } + }, "include": [ "**/.eslintrc.cjs", "**/*.ts", @@ -11,8 +24,5 @@ "**/*.mjs", ".next/types/**/*.ts", "next-env.d.ts" - ], - "compilerOptions": { - "jsx": "preserve" - } + ] }