angular-google-映射 ionic 中的 nemlogging 错误

angular-google-maps nemlogging error in ionic

在我的项目中使用 Bower 安装 angular-google-maps 库后出现此错误。

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.

为什么会出现此错误?

您必须包含 angular-simple-logger.js-File,因为 angular-simple-logger 是 angular-google 的依赖项-地图。

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

您必须安装 angular-simple-logger 作为依赖项,例如。然后使用 bower 在您的项目中添加 js 文件 link。