【问题标题】:cannot resolve the error ProgressPlugin TypeError: Cannot read property 'tap' of undefined无法解决错误 ProgressPlugin TypeError: Cannot read property 'tap' of undefined
【发布时间】:2019-06-20 06:45:40
【问题描述】:

我在 npm run build 期间遇到错误

这是错误

 Compiling client

    E:\ui\sheraspace_ui\node_modules\webpack\lib\ProgressPlugin.js:223

    compilation.hooks.addEntry.tap("ProgressPlugin", entryAdd);

    TypeError: Cannot read property 'tap' of undefined

我尝试删除 package.lock.json 和 node 模块,然后重新安装 npm。我还尝试安装 webpack。我的项目是在 next.js 上构建的,但我仍然收到此错误。有什么办法可以解决此错误?

【问题讨论】:

    标签: javascript reactjs webpack next.js


    【解决方案1】:

    尝试从 package.json 中删除“webpack”,删除 package-lock.json 和 node_modules 目录。然后用npm install重新安装包

    来源:https://github.com/zeit/next.js/issues/5781

    【讨论】:

    • 我从另一个项目的项目模板创建了一个新的 ASPNetCore 项目。这是我的解决方案。
    猜你喜欢
    • 2022-10-18
    • 2021-06-25
    • 2019-01-21
    • 1970-01-01
    • 2022-08-10
    • 1970-01-01
    • 2017-04-24
    • 2023-03-15
    • 2020-11-07
    相关资源
    最近更新 更多