diff --git a/dotcom-rendering/tsconfig.json b/dotcom-rendering/tsconfig.json index 1790fa0e519..a64b7bf1c1b 100644 --- a/dotcom-rendering/tsconfig.json +++ b/dotcom-rendering/tsconfig.json @@ -10,6 +10,10 @@ "noEmit": true, "noFallthroughCasesInSwitch": true, "noUncheckedIndexedAccess": true, + "paths": { + /* Aliases should also be added to the webpack, babel and jest configurations */ + "*": ["node_modules/@types/*", "*"] // Make sure that yarn linking doesn't confuse things https://github.com/microsoft/TypeScript/issues/11916#issuecomment-257130001 + }, "preserveConstEnums": true }, "exclude": [