gpt4 book ai didi

javascript - 获取错误 "Error: $injector:modulerr Module Error"

转载 作者:行者123 更新时间:2023-11-30 09:57:40 29 4
gpt4 key购买 nike

我想使用 angular-google-map api,但出现错误:"Error: $injector:modulerr Module Error"

我想使用浏览器 key 测试 Google-map-api。我得到了这个教程表格 How to use google-map-key

我尝试运行但出现上述错误。请查看使用 Google-Map Key 的演示 DEMO

最佳答案

2.2.x 版的谷歌地图对 nemLogging 有额外的依赖。如果您使用库的非缩小版本,您会收到以下错误:

Uncaught Error: [$injector:modulerr] Failed to instantiate module customMap due to:
Error: [$injector:modulerr] Failed to instantiate module uiGmapgoogle-maps due to:
Error: [$injector:modulerr] Failed to instantiate module uiGmapgoogle-maps.directives.api due to:
Error: [$injector:modulerr] Failed to instantiate module uiGmapgoogle-maps.directives.api.models.parent due to:
Error: [$injector:modulerr] Failed to instantiate module uiGmapgoogle-maps.directives.api.models.child due to:
Error: [$injector:modulerr] Failed to instantiate module uiGmapgoogle-maps.directives.api.utils due to:
Error: [$injector:modulerr] Failed to instantiate module uiGmapgoogle-maps.extensions due to:
Error: [$injector:modulerr] Failed to instantiate module uiGmapgoogle-maps.providers due to:
Error: [$injector:modulerr] Failed to instantiate module nemLogging due to:
Error: [$injector:nomod] Module 'nemLogging' is not available! You either misspelled the module name or forgot to load it. If registering a module ensure that you specify the dependencies as the second argument.

新的依赖在这个 github issue 上讨论.我建议包括那个新库,或者使用指南中指定的版本 (2.0.16)

关于javascript - 获取错误 "Error: $injector:modulerr Module Error",我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/33244746/

29 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com