我已经将应用程序更新为 angular 13,"ngx-popover"库导致在 npm 启动时出现"Ivy"相关错误



我已经将应用程序更新为angular 13,"ngx popover";库导致";Ivy";npm启动时出现相关错误

在";package.json":

"ngx-popover": "^0.0.16"

版本:

Angular CLI: 13.0.4
Node: 16.13.1
Package Manager: npm 8.1.2

当";npm开始":

Error: node_modules/ngx-popover/index.d.ts:3:22 - error NG6002: Appears in the NgModule.imports of AppModule, but could not be resolved to an NgModule class.
This likely means that the library (ngx-popover) which declares PopoverModule has not been processed correctly by ngcc, or is not compatible with Angular Ivy. Check if a newer version of the library is available, and update if so. Also consider checking with the library's authors to see if the library is expected to be compatible with Ivy.

"ngx popover";库并没有及时更新。所以它可能不支持Angular 13 Ivy。

请给我建议这个问题的解决方案。

ngx popover绝对不适合ivy使用。一个简单的解决方法是使用ng引导并实现它们的popover:

https://www.npmjs.com/package/@ng引导程序/ng引导程序