Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/javascript/390.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/reactjs/26.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Javascript 无法解决错误ProgressPlugin TypeError:无法读取属性';轻触';未定义的_Javascript_Reactjs_Webpack_Next.js - Fatal编程技术网

Javascript 无法解决错误ProgressPlugin TypeError:无法读取属性';轻触';未定义的

Javascript 无法解决错误ProgressPlugin TypeError:无法读取属性';轻触';未定义的,javascript,reactjs,webpack,next.js,Javascript,Reactjs,Webpack,Next.js,我在npm运行构建期间出错 这里是错误 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.

我在npm运行构建期间出错

这里是错误

 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和节点模块,然后重新安装npm。我还尝试安装webpack。我的项目是基于next.js构建的,但我仍然收到此错误。我有什么办法可以解决此错误

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


来源:

我从另一个项目的项目模板创建了一个新的ASPNetCore项目。这就是我的解决方案。