nrwl/nx 8.8.0 的 license-webpack-plugin 错误

license-webpack-plugin error with nrwl/nx 8.8.0

将 nrwl/nx 升级到 v 8.8.0 后,出现此错误:

An unhandled exception occurred: license-webpack-plugin: 
Please specify a regular expression as the pattern property on the plugin options.

我没有在我的项目 (package.json) 中使用 license-webpack-plugin,但在 package-lock.json 中我可以看到它需要:

如何停用此插件或解决该问题?

这是 8.8.0 中的 bug,在 8.8.3

版本中已修复

临时解决方法:在 angular.json 中将所有出现的 extractLicenses 设置为 false,编译再次运行。

让我们在 https://github.com/nrwl/nx/issues/2081

关注 Github 问题