Skip to content

Commit 6cc0f77

Browse files
committed
Fix kriasoft#490: npm start fails with TypeError message
1 parent e0f299b commit 6cc0f77

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tools/start.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,8 +83,8 @@ async function start() {
8383
.filter(compiler => compiler.options.target !== 'node')
8484
.map(compiler => webpackHotMiddleware(compiler));
8585

86-
let handleServerBundleComplete = () => {
87-
runServer((err, host) => {
86+
var handleServerBundleComplete = () => { // eslint-disable-line no-var,vars-on-top
87+
runServer((err, host) => { // github.com/kriasoft/react-starter-kit/issues/490
8888
if (!err) {
8989
const bs = Browsersync.create();
9090
bs.init({

0 commit comments

Comments
 (0)