问题
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