From 02c6a0befc071b045fe137862433f656eadc1b4e Mon Sep 17 00:00:00 2001 From: Jesse Yang Date: Wed, 16 Dec 2020 21:50:56 -0800 Subject: [PATCH] Fix typescript error (#12074) --- superset-frontend/tsconfig.json | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/superset-frontend/tsconfig.json b/superset-frontend/tsconfig.json index 6a8959e1c..b158eebfb 100644 --- a/superset-frontend/tsconfig.json +++ b/superset-frontend/tsconfig.json @@ -16,6 +16,11 @@ "noUnusedLocals": true, "outDir": "./dist", "pretty": true, + "paths": { + // for supressing errors caused by incompatible @types/react when `npm link` + // Ref: https://github.com/Microsoft/typescript/issues/6496#issuecomment-384786222 + "*": ["./node_modules/@types/*", "*"] + }, "skipLibCheck": true, "sourceMap": true, "strictNullChecks": true,