From 76157fe6f4244e11c3965940047b12ca5382ea4e Mon Sep 17 00:00:00 2001 From: Manas Jayanth <3097018+ManasJayanth@users.noreply.github.com> Date: Fri, 12 Jul 2024 19:56:07 +0530 Subject: [PATCH] Add allowSyntheticDefaultImports = true Because of validateNPMPackageName. Otherwise, ``` 14 import validateNPMPackageName from "validate-npm-package-name"; ~~~~~~~~~~~~~~~~~~~~~~ node_modules/@types/validate-npm-package-name/index.d.ts:29:1 29 export = validate; ~~~~~~~~~~~~~~~~~~ This module is declared with 'export =', and can only be used with a default import when using the 'allowSyntheticDefaultImports' flag. Found 1 error in index.ts:14 ``` --- tsconfig.json | 1 + 1 file changed, 1 insertion(+) diff --git a/tsconfig.json b/tsconfig.json index a8c9cd4..ab9acb4 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -4,6 +4,7 @@ "lib": ["ESNext"], "moduleResolution": "Node", "noEmit": true, + "allowSyntheticDefaultImports": true, "noFallthroughCasesInSwitch": true, "noImplicitReturns": true, "noUnusedLocals": true,