ReferenceError:使用angular-google-maps时未定义_

保罗

我得到ReferenceError: _ is not defined角谷歌,地图

我真的不明白为什么会收到此错误,因为我完全按照网站上写的去做。

我也搜索了类似的问题,但没有帮助。

bundle.js

$ = window.$ = window.jQuery = require('./lib/jquery');
require('./lib/angular-simple-logger.js');
require('./lib/angular-google-maps.js');
require('./lib/lodash.js');

我importindbundle.js进入index.html我也尝试使用ngLodash,但没有结果。

app.js

var app = angular.module('app', [
  'ngLodash',
  'nemLogging',
  'uiGmapgoogle-maps'
]);

app.config(function(uiGmapGoogleMapApiProvider) {
    uiGmapGoogleMapApiProvider.configure({
       key: '{myKey}',
       v: '3.20',
       libraries: 'places' // I don't need the whole map, only the places
   });
});

我也GoogleMaps Api启用Google Developer Console

有人对这个库有一些经验,可以给我提示吗?

FlavorScape

您需要添加_下划线库作为依赖项。npm install underscore,或添加到Bower配置中,或用于依赖管理的任何内容。

<script src="bower_components/underscore/underscore-min.js"></script>

本文收集自互联网,转载请注明来源。

如有侵权,请联系[email protected] 删除。

编辑于
0

我来说两句

0条评论
登录后参与评论

相关文章

来自分类Dev

Google Maps API(使用gmapsjs)时,setCenter抛出“未定义不是函数”吗?

来自分类Dev

为什么在使用 Google Maps API 时全局设置的 JS 变量显示为未定义?

来自分类Dev

使用angular2-google-maps和google places搜索栏未定义google对象

来自分类Dev

使用google.maps.geometry.spherical.computeOffset时,如何解决JavaScript错误“未定义”不是对象?

来自分类Dev

未捕获的ReferenceError:尝试在没有地图的情况下使用Google Places API时未定义google

来自分类Dev

ReferenceError:页面刷新和缓存删除时未定义 Google

来自分类Dev

google.maps.places未定义

来自分类Dev

Google Maps Geocoder未定义

来自分类Dev

未定义Google Maps功能

来自分类Dev

Google Maps Geocoder未定义

来自分类Dev

Google Maps API返回“未定义”

来自分类Dev

Angular2 bundle.js:2未捕获的ReferenceError:未定义google

来自分类Dev

geocomplete_rails和Uncaught ReferenceError:未定义google

来自分类Dev

Google Analytic事件的错误:“ ReferenceError:__gaTracker未定义”

来自分类Dev

使用Google登录名时出错-Vue“未定义gapi”

来自分类Dev

Google Maps-模拟多边形点击时“ b未定义”?

来自分类Dev

Google Analytics(分析)用户ID返回未捕获的ReferenceError:未登录用户时未定义“无” | Python

来自分类Dev

ReferenceError:在Webpack中使用ExtractTextPlugin时未定义窗口

来自分类Dev

很难让Google Maps在Ionic中显示-“未定义Google”

来自分类Dev

添加带有react的Google Maps时出错-TypeError:无法读取未定义的属性“ maps”

来自分类Dev

Google Maps API 3-类型错误:a未定义

来自分类Dev

Google Maps集成中的“未定义rd”错误

来自分类Dev

Google Maps API gm_bindings_未定义

来自分类Dev

带有Dart的Google Maps:保留功能未定义

来自分类Dev

Google Maps集成中的“未定义rd”错误

来自分类Dev

Google Maps API gm_bindings_未定义

来自分类Dev

Google Maps api标记未定义错误

来自分类Dev

Google Maps-从未定义的函数返回getPosition

来自分类Dev

ReferenceError:未定义google-Mozilla firefox中的Google Apps脚本错误

Related 相关文章

  1. 1

    Google Maps API(使用gmapsjs)时,setCenter抛出“未定义不是函数”吗?

  2. 2

    为什么在使用 Google Maps API 时全局设置的 JS 变量显示为未定义?

  3. 3

    使用angular2-google-maps和google places搜索栏未定义google对象

  4. 4

    使用google.maps.geometry.spherical.computeOffset时,如何解决JavaScript错误“未定义”不是对象?

  5. 5

    未捕获的ReferenceError:尝试在没有地图的情况下使用Google Places API时未定义google

  6. 6

    ReferenceError:页面刷新和缓存删除时未定义 Google

  7. 7

    google.maps.places未定义

  8. 8

    Google Maps Geocoder未定义

  9. 9

    未定义Google Maps功能

  10. 10

    Google Maps Geocoder未定义

  11. 11

    Google Maps API返回“未定义”

  12. 12

    Angular2 bundle.js:2未捕获的ReferenceError:未定义google

  13. 13

    geocomplete_rails和Uncaught ReferenceError:未定义google

  14. 14

    Google Analytic事件的错误:“ ReferenceError:__gaTracker未定义”

  15. 15

    使用Google登录名时出错-Vue“未定义gapi”

  16. 16

    Google Maps-模拟多边形点击时“ b未定义”?

  17. 17

    Google Analytics(分析)用户ID返回未捕获的ReferenceError:未登录用户时未定义“无” | Python

  18. 18

    ReferenceError:在Webpack中使用ExtractTextPlugin时未定义窗口

  19. 19

    很难让Google Maps在Ionic中显示-“未定义Google”

  20. 20

    添加带有react的Google Maps时出错-TypeError:无法读取未定义的属性“ maps”

  21. 21

    Google Maps API 3-类型错误:a未定义

  22. 22

    Google Maps集成中的“未定义rd”错误

  23. 23

    Google Maps API gm_bindings_未定义

  24. 24

    带有Dart的Google Maps:保留功能未定义

  25. 25

    Google Maps集成中的“未定义rd”错误

  26. 26

    Google Maps API gm_bindings_未定义

  27. 27

    Google Maps api标记未定义错误

  28. 28

    Google Maps-从未定义的函数返回getPosition

  29. 29

    ReferenceError:未定义google-Mozilla firefox中的Google Apps脚本错误

热门标签

归档