-2
在我Angular2项目中,我用2个模块:谷歌模块冲突
"@types/google.visualization": "0.0.40",
"@types/googlemaps": "^3.29.1",
它创建类似冲突:
ERROR in C:/.../ng-cli/src/app/app.component.ts (25,21): Namespace 'google' has no exported member 'visualization'.
ERROR in C:/.../ng-cli/src/app/app.component.ts (52,12): Property 'charts' does not exist on type 'typeof google'.
ERROR in C:/.../ng-cli/src/app/app.component.ts (145,30): Property 'visualization' does not exist on type 'typeof google'.
的GoogleMaps声明命名空间google.maps。
google.visualization声明名称空间谷歌和内部图表和可视化。
如何正确解决?
“app.component.ts”的第25行是什么? – Henry
它是一个变量声明:chartData:google.visualization.DataTable; –