【问题标题】:Ionic Capacitor Google Maps error (@capacitor/google-maps)离子电容器 Google 地图错误 (@capacitor/google-maps)
【发布时间】:2022-11-03 16:14:01
【问题描述】:

我想在离子电容器角度项目中包含谷歌地图,所以我按照他们的documentation 这样做。但是当我构建时,出现以下错误:

Error: node_modules/@capacitor/google-maps/dist/typings/definitions.d.ts:1:23 - error TS2688: Cannot find type definition file for 'google.maps'.
[ng] 1 /// <reference types="google.maps" />

我到处搜索,检查了文档,甚至遵循了stack overflow question none 中的答案,这似乎有帮助:

【问题讨论】:

    标签: angular google-maps ionic-framework capacitor


    【解决方案1】:

    你可以试试:

    1. 删除 package-lock.json
    2. 删除 node_modules 文件夹
    3. 运行 npm 安装

      或者当你有依赖问题想要稍后修复时

      npm install -f
      

    【讨论】:

      猜你喜欢
      • 2022-01-18
      • 1970-01-01
      • 2022-10-30
      • 1970-01-01
      • 2020-10-18
      • 1970-01-01
      • 1970-01-01
      • 2016-08-02
      • 2014-01-28
      相关资源
      最近更新 更多