From 986f9959bda0581f7e86355d65c10c284ecb9cb5 Mon Sep 17 00:00:00 2001 From: Alexander Sorokin <10401817+brawaru@users.noreply.github.com> Date: Tue, 28 Nov 2023 16:39:15 +0100 Subject: [PATCH] Enable allowSyntheticDefaultImports in TS config WebStorm seems to have problems if this option is missing from tsconfig. While still uncertain whether or not WebStorm is correct (VS Code with TypeScript LS doesn't have this issue), enabling it doesn't seem to cause any problems. --- tsconfig.json | 1 + 1 file changed, 1 insertion(+) diff --git a/tsconfig.json b/tsconfig.json index c17ef172e..e1fdca086 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -5,6 +5,7 @@ "module": "ESNext", "lib": ["ES2022", "DOM", "DOM.Iterable"], "skipLibCheck": true, + "allowSyntheticDefaultImports": true, /* Bundler mode */ "moduleResolution": "bundler",