Joon-na-Seriously / Joon-na-Seriously/seungjohan-node-react-basic

TypeError: Cannot read property 'prototype' of undefined

未关闭
#2 2 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
主要语言
JavaScript
星标
0
派生
0
PR 合并指标
30 天内没有已合并 PR

描述

TypeError: Cannot read property 'prototype' of undefined
(anonymous function)
node_modules/express/lib/response.js:42
39 | * @public
40 | */
41 |
> 42 | var res = Object.create(http.ServerResponse.prototype)
43 |
44 | /**
45 | * Module exports.
View compiled
./node_modules/express/lib/response.js
http://localhost:3000/static/js/vendors~main.chunk.js:41782:30
__webpack_require__
/Users/seungjohan/PycharmProjects/nodereact-basic/boilder-plate/client/webpack/bootstrap:856
853 |
854 | __webpack_require__.$Refresh$.init();
855 | try {
> 856 | modules[moduleId].call(module.exports, module, module.exports, hotCreateRequire(moduleId));
| ^ 857 | } finally {
858 | __webpack_require__.$Refresh$.cleanup(moduleId);
859 | }
View compiled
fn
/Users/seungjohan/PycharmProjects/nodereact-basic/boilder-plate/client/webpack/bootstrap:150
147 | );
148 | hotCurrentParents = [];
149 | }
> 150 | return __webpack_require__(request);
| ^ 151 | };
152 | var ObjectFactory = function ObjectFactory(name) {
153 | return {
View compiled
./node_modules/express/lib/express.js
node_modules/express/lib/express.js:22
__webpack_require__
/Users/seungjohan/PycharmProjects/nodereact-basic/boilder-plate/client/webpack/bootstrap:856
853 |
854 | __webpack_require__.$Refresh$.init();
855 | try {
> 856 | modules[moduleId].call(module.exports, module, module.exports, hotCreateRequire(moduleId));
| ^ 857 | } finally {
858 | __webpack_require__.$Refresh$.cleanup(moduleId);
859 | }
....

대강 이런 에러가 떴습니다.

贡献指南

这个仓库没有索引到贡献指南

调研方向

Start by reproducing the error while loading localhost:3000, then inspect node_modules/express/lib/response.js, node_modules/express/lib/express.js, and client/webpack/bootstrap around the reported lines. Done means the application loads without the TypeError; the issue does not provide a failing test or a more specific expected change.

由索引模型根据 Issue 内容生成。

评估

技术栈
express, javascript, node.js, webpack
领域
build-system, full-stack
Issue 类型
缺陷
难度
3/5
预计耗时
1-2 天
活跃度
停滞
描述清晰度
需要澄清
新手友好度
25/100

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。