From 108a9febbb9eabdf966878136f39698afc8c51b3 Mon Sep 17 00:00:00 2001 From: Michael Lancaster Date: Wed, 11 Jul 2018 11:11:10 -0700 Subject: [PATCH] fix: styled types path not found This commit explicit target emotion types to fix module import in ts. Closes DCOS-39087 --- tsconfig.json | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/tsconfig.json b/tsconfig.json index 45b171ba7..792b43848 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -13,7 +13,12 @@ "esModuleInterop": true, "strict": true, "moduleResolution": "node", - "typeRoots": ["node_modules/@types"], + "typeRoots": [ + "node_modules/@types", + "node_modules/emotion/types", + "node_modules/create-emotion-styled/types", + "node_modules/create-emotion-styled/types/react" + ], "lib": ["es6", "dom", "es2017"] }, "include": ["./packages/index.ts"],