gpt4 book ai didi

javascript - Webpack4 npm start 未捕获类型错误

转载 作者:行者123 更新时间:2023-11-30 06:14:38 25 4
gpt4 key购买 nike

我 npm start Vue project 是可以的,但是我打开浏览器页面是空白的。这是 Uncaught 以下错误,

TypeError: Cannot read property 'call' of undefined

控制台 View 如下,

Uncaught TypeError: Cannot read property 'call' of undefined
at __webpack_require__ (app.js:768)
at fn (app.js:142)
at Module../src/main.js (app.js:10476)[enter image description here][1]
at __webpack_require__ (app.js:768)
at fn (app.js:142)
at Object.0 (app.js:10547)
at __webpack_require__ (app.js:768)
at checkDeferredModules (app.js:44)
at app.js:844
at app.js:847

当我调试时发现有错误:

modules[moduleId].call(module.exports, module, module.exports, hotCreateRequire(moduleId));

// The require function
function __webpack_require__(moduleId) {

// Check if module is in cache
if(installedModules[moduleId]) {
return installedModules[moduleId].exports;
}
// Create a new module (and put it into the cache)
var module = installedModules[moduleId] = {
i: moduleId,
l: false,
exports: {},
hot: hotCreateModule(moduleId),
parents: (hotCurrentParentsTemp = hotCurrentParents, hotCurrentParents = [], hotCurrentParentsTemp),
children: []
};

// Execute the module function
**modules[moduleId].call(module.exports, module, module.exports, hotCreateRequire(moduleId));**

// Flag the module as loaded
module.l = true;

// Return the exports of the module
return module.exports;
}

最佳答案

清除浏览器捕获内存并进行硬刷新。

请引用this

关于javascript - Webpack4 npm start 未捕获类型错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/56911260/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com