Невозможно прочитать свойство 'prototype' undefined. /node_modules/express/lib/response.js:42
Я получаю эту ошибку, когда запускаю приложение реагирования вместе с express бэкэндом. Приложение работало нормально, пока ошибка не появилась из ниоткуда.
39 | * @public
40 | */
41 |
> 42 | var res = Object.create(http.ServerResponse.prototype)
43 |
Вот что я получаю в консоли:
at Object.<anonymous> (response.js:42)
at Object../node_modules/express/lib/response.js (response.js:1142)
at __webpack_require__ (bootstrap:785)
at fn (bootstrap:150)
at Object../node_modules/express/lib/express.js (express.js:22)
at __webpack_require__ (bootstrap:785)
at fn (bootstrap:150)
at Object../node_modules/express/index.js (index.js:11)
at __webpack_require__ (bootstrap:785)
at fn (bootstrap:150)
at Module../src/actions/index.js (index.js:1)
at __webpack_require__ (bootstrap:785)
at fn (bootstrap:150)
at Module../src/containers/HomeContainer.js (UserPosts.js:53)
at __webpack_require__ (bootstrap:785)
at fn (bootstrap:150)
at Module../src/components/home/home.js (sidenav_items.js:80)
at __webpack_require__ (bootstrap:785)
at fn (bootstrap:150)
at Module../src/routes.js (user_reducer.js:17)
at __webpack_require__ (bootstrap:785)
at fn (bootstrap:150)
at Module../src/index.js (HomeContainer.js:42)
at __webpack_require__ (bootstrap:785)
at fn (bootstrap:150)
at Object.1 (BookItem.js:24)
at __webpack_require__ (bootstrap:785)
at checkDeferredModules (bootstrap:45)
at Array.webpackJsonpCallback [as push] (bootstrap:32)
at main.chunk.js:1```