将Angulartics2更新为7.0.2并运行我的项目后,它会引发如下错误:
Type '(typeof Angulartics2Piwik)[]' has no properties in common with type 'Partial<Angulartics2Settings>'.
我已经将所有内容导入了之前运行的应用程序模块和组件中,因此我不知道它是否是错误或在此更新后应添加的内容。
答案 0 :(得分:2)
对于Angular 7,您实际上不需要将其添加到forRoot()
,只需将其保留为空白即可:
Angulartics2Module.forRoot()
在这里您可以了解有关the forRoot convention
的更多信息