我得到了下面的错误
ERROR in node_modules/ngx-bootstrap/popover/popover.module.d.ts:3:23 - error NG6005:
PopoverModule.forRoot returns a ModuleWithProviders type without a generic type argument.
Please add a generic type argument to the ModuleWithProviders type.
If this occurrence is in library code you don't control, please contact the library authors.我刚刚添加了Ngx-Bootstrap的Popover模块,并导入了PopoverModule.forRoot()。这似乎是Angular 9不兼容的问题。如何解决这个问题?
发布于 2020-03-24 12:02:04
我解决这个错误的方法是如此的微不足道。
我只需运行ng add ngx-bootstrap --component popover即可。
上面写着:
Skipping installation: Package already installed
Unknown option: '--component'
Unknown option: 'popover'但当我为这个项目服务时,它还是成功地运行了。
发布于 2020-08-06 17:22:24
发布于 2020-08-17 23:42:53
这个问题应该在最新版本中修复,该版本可以正确地与Angular 9- in 6.0.0一起使用。
此外,它还支持Angular 10。
https://stackoverflow.com/questions/60824686
复制相似问题