问题:无法识别 Angular CLI 上的 Google 地图
Issue: Google maps on Angular CLI not recognized
我正在使用 angular-cli 构建 angular 2 应用程序。使用 google 地图对象时,我在 build/serve、
上看到以下错误
Cannot find name 'google'
我已经安装了 google maps typings(typings 版本 1.4.0),
typings i dt~google.maps --global --save
遵循以下解决方案,但没有太大帮助,
请建议我接下来可以尝试什么。
找到问题,
typings > index.d.ts was not updated with google.maps typing reference
更改它并在 typings.d.ts 中添加对 index.d.ts 的引用后,它可以识别 google 个地图对象。
我正在使用 angular-cli 构建 angular 2 应用程序。使用 google 地图对象时,我在 build/serve、
上看到以下错误Cannot find name 'google'
我已经安装了 google maps typings(typings 版本 1.4.0),
typings i dt~google.maps --global --save
遵循以下解决方案,但没有太大帮助,
请建议我接下来可以尝试什么。
找到问题,
typings > index.d.ts was not updated with google.maps typing reference
更改它并在 typings.d.ts 中添加对 index.d.ts 的引用后,它可以识别 google 个地图对象。