-2
は、私が2つのモジュールを使用します。Googleのモジュールの競合
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'.
Googleマップの名前空間を宣言しgoogle.maps:
"@types/google.visualization": "0.0.40",
"@types/googlemaps": "^3.29.1",
それはのような競合が作成されます。
google.visualizationは、名前空間googleと内部のチャートと視覚化を宣言します。
正しく解決するにはどうすればよいですか?
'app.component.ts'の25行目は何ですか? – Henry
これは変数宣言です:chartData:google.visualization.DataTable; –