Skip to content

Commit 1750d4a

Browse files
Bardia RastinBardia Rastin
authored andcommitted
update react error overlay to be compatible with chalk 2
1 parent a3d002e commit 1750d4a

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

packages/create-react-app/createReactApp.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -669,6 +669,7 @@ function getProxy() {
669669
}
670670
}
671671
}
672+
672673
function checkThatNpmCanReadCwd() {
673674
const cwd = process.cwd();
674675
let childOutput = null;

packages/react-error-overlay/build.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,12 @@
55
* LICENSE file in the root directory of this source tree.
66
*/
77
const webpack = require('webpack');
8-
const chalk = require('chalk');
8+
const Chalk = require('chalk');
99
const webpackConfig = require('./webpack.config.js');
1010
const iframeWebpackConfig = require('./webpack.config.iframe.js');
1111
const rimraf = require('rimraf');
1212
const chokidar = require('chokidar');
13+
const chalk = new Chalk.constructor({ enabled: true, level: 1 });
1314

1415
const args = process.argv.slice(2);
1516
const watchMode = args[0] === '--watch' || args[0] === '-w';

0 commit comments

Comments
 (0)