From 53e92e6f7850a7decab5d1323d3a46e40a70a4ff Mon Sep 17 00:00:00 2001 From: Andrew Luca Date: Mon, 10 Feb 2020 11:10:37 +0200 Subject: [PATCH] fix(typescriptFormatter): use chalk@2 constructor Related #8164 Related #8439 --- packages/react-dev-utils/typescriptFormatter.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/react-dev-utils/typescriptFormatter.js b/packages/react-dev-utils/typescriptFormatter.js index e5175433d40..dc2f85d2e3e 100644 --- a/packages/react-dev-utils/typescriptFormatter.js +++ b/packages/react-dev-utils/typescriptFormatter.js @@ -28,7 +28,7 @@ function formatter(message, useColors) { } : message; - const colors = new chalk.Instance({ enabled: useColors }); + const colors = new chalk.constructor({ enabled: useColors }); const messageColor = message.isWarningSeverity() ? colors.yellow : colors.red; const fileAndNumberColor = colors.bold.cyan;