S
S
Siv_Nefzer2020-07-09 10:14:14
JavaScript
Siv_Nefzer, 2020-07-09 10:14:14

How to fix "Cannot read property 'close' of undefined" error?

There was an unexpected problem with starting the project on a new machine. On startup it crashes into an error Cannot read property 'close' of undefined. It swears at files in node_modules. I tried both to make new ones through the team nom installand to take already proven workers from the old machine, the result is the same.
Full text of the error

spoiler
Uncaught TypeError: Cannot read property 'close' of undefined
at Object. (0.chunk.js:102658)
at Object../node_modules/react-dev-utils/node_modules/chalk/index.js (0.chunk.js:102837)
at __webpack_require__ (bundle.js:785)
at fn (bundle.js:151)
at Object../node_modules/react-dev-utils/formatWebpackMessages.js (0.chunk.js:102455)
at __webpack_require__ (bundle.js:785)
at fn (bundle.js:151)
at Object../node_modules/react-dev-utils/webpackHotDevClient.js (0.chunk.js:103076)
at __webpack_require__ (bundle.js:785)
at fn (bundle.js:151)

Answer the question

In order to leave comments, you need to log in

2 answer(s)
S
Siv_Nefzer, 2020-07-09
@Siv_Nefzer

Found a solution. may be useful to someone.
remove node_modules and package-lock.json and npm install again.

D
Dmitry Markov, 2020-07-09
@En-Tilza

Might be worth checking the version of node.js and gulp ?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question