"unresolved variable or type google"

"unresolved variable or type google"

使用 Google 地图 API,WebStorm 告诉我 google 未解决。我在 Languages & Frameworks 设置中添加了库,但它仍然存在。

google-maps is not the right library, please use googlemaps 代替。您可以通过 File | Settings | Languages & Frameworks | JavaScript | Libraries 下载它,或者通过 npm (npm install @types/googlemaps --save-dev)

安装在您的项目中