在我的angular 8项目中集成谷歌地图时遇到一些问题

时间:2019-07-31 05:44:41

标签: javascript node.js angular7 angular-google-maps angular8

为我的有角项目实施gooogle地图, 我已将@google/maps与角度8一起使用。 我收到此错误:

  ./node_modules/@google/maps/lib/internal/make-url-request.js中的

错误   找不到模块:错误:无法解析'/ var / www / html / googleMap / node_modules / @ google / maps / lib / internal'

中的'https'

我经历了所有的堆栈溢出解决方案,但没有任何帮助

我的package.json文件:

    {
      "name": "google-map",
      "version": "0.0.0",
      "scripts": {
        "ng": "ng",
        "start": "ng serve",
        "build": "ng build",
        "test": "ng test",
        "lint": "ng lint",
        "e2e": "ng e2e"
      },
      "private": true,
      "dependencies": {
        "@agm/core": "^1.0.0-beta.7",
        "@agm/snazzy-info-window": "^1.0.0-beta.7",
        "@angular/animations": "~8.0.0",
        "@angular/common": "~8.0.0",
        "@angular/compiler": "~8.0.0",
        "@angular/core": "~8.0.0",
        "@angular/forms": "~8.0.0",
        "@angular/platform-browser": "~8.0.0",
        "@angular/platform-browser-dynamic": "~8.0.0",
        "@angular/router": "~8.0.0",
        "@google/maps": "^0.5.5",
        "rxjs": "~6.4.0",
        "snazzy-info-window": "^1.1.1",
        "tslib": "^1.9.0",
        "zone.js": "~0.9.1"
      },
      "devDependencies": {
        "@angular-devkit/build-angular": "~0.800.0",
        "@angular/cli": "~8.0.0",
        "@angular/compiler-cli": "~8.0.0",
        "@angular/language-service": "~8.0.0",
        "@types/googlemaps": "^3.37.0",
        "@types/jasmine": "~3.3.8",
        "@types/jasminewd2": "~2.0.3",
        "@types/node": "~8.9.4",
        "codelyzer": "^5.0.0",
        "jasmine-core": "~3.4.0",
        "jasmine-spec-reporter": "~4.2.1",
        "karma": "~4.1.0",
        "karma-chrome-launcher": "~2.2.0",
        "karma-coverage-istanbul-reporter": "~2.0.1",
        "karma-jasmine": "~2.0.1",
        "karma-jasmine-html-reporter": "^1.4.0",
        "protractor": "~5.4.0",
        "ts-node": "~7.0.0",
        "tslint": "~5.15.0",
        "typescript": "~3.4.3"
      },
      "browser": {
        "crypto": false
      }
    }

我需要克服这个问题,请帮忙 或者,如果您中的任何人在您的项目中集成了google地图,请提供github链接,这将非常有帮助。

0 个答案:

没有答案