angular-google-maps nemlogging error in ionic

纵然是瞬间 提交于 2019-12-10 20:00:23

问题


I get this error after install angular-google-maps library with Bower in my project.

Uncaught Error: [$injector:modulerr] Failed to instantiate module starter 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.

Why am I get this error?


回答1:


You have to include the angular-simple-logger.js-File as angular-simple-logger is a dependency of angular-google-maps.

<script src="lib/angular-simple-logger/dist/angular-simple-logger.min.js"></script>




回答2:


You have to install angular-simple-logger as a dependency eg. Using bower then add the js file link in your project.



来源:https://stackoverflow.com/questions/33054490/angular-google-maps-nemlogging-error-in-ionic

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!