【发布时间】:2021-08-16 15:43:34
【问题描述】:
npm 更新到 7.20.6 后,我无法再构建我的 Vaadin 应用程序了。
它给出以下错误:
Insufficient number of arguments or no entry found.
Alternatively, run 'webpack(-cli) --help' for usage info.
Hash: 4deef033da9d3a9fa458
Version: webpack 4.42.0
Time: 31ms
Built at: 08/16/2021 5:02:34 PM
ERROR in Entry module not found: Error: Can't resolve 'babel-loader' in '/srv/github/***/yalsee/_work/yalsee/yalsee/frontend'
ERROR in Entry module not found: Error: Can't resolve 'babel-loader' in '/srv/github/***/yalsee/_work/yalsee/yalsee/frontend'
但是我没有在前端文件夹中使用/导入这个 babel-loader。
我尝试使用 Vaadin 14.5.3 和 14.6.8
两者都给了我相同的结果。
【问题讨论】:
-
npm 安装是否有任何问题,或者 webpack 失败是唯一的例外?
-
只有 webpack 失败。
-
我可以通过更新到最新来复制它。只要您删除 node_modules,解决方法就有效。另一个似乎可以正常工作的方法是为以前的版本提供 package-lock.json。
-
测试了版本,从那里构建失败,似乎 7.20.3 中出现了问题。我们现在将损坏的版本标记为黑名单,并继续在票证github.com/vaadin/flow/issues/11584 中进行调查
-
这个问题应该会被修复并在下一个版本中推出。
标签: npm webpack vaadin vaadin14