首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >Webpack4 npm启动TypeError

Webpack4 npm启动TypeError
EN

Stack Overflow用户
提问于 2019-07-06 04:37:38
回答 1查看 3.2K关注 0票数 2

我npm启动Vue项目是可以的,但我打开浏览器页面空白。

TypeError:无法读取未定义属性的“调用”

控制台视图如下,

代码语言:javascript
复制
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

当我执行任务时,我发现有错误:

modulesmoduleId.call(module.exports,模块,module.exports,hotCreateRequire(moduleId));

代码语言:javascript
复制
// 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;
    }
EN

回答 1

Stack Overflow用户

发布于 2019-07-06 07:21:48

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

请参阅

票数 1
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/56911260

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档