Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/ionic-framework/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Ionic framework 简单错误-检查其他帖子-未定义ngCordova_Ionic Framework_Ngcordova_Hybrid - Fatal编程技术网

Ionic framework 简单错误-检查其他帖子-未定义ngCordova

Ionic framework 简单错误-检查其他帖子-未定义ngCordova,ionic-framework,ngcordova,hybrid,Ionic Framework,Ngcordova,Hybrid,我正面临着这个错误 [$injector:modulerr] Failed to instantiate module starter due to: Error: [$injector:modulerr] Failed to instantiate module ngCordova due to: 现在我知道这与索引html有关,因为它无法以某种方式引用ngcordova服务 index.html <script src="https://ajax.googleapis.com/aja

我正面临着这个错误

[$injector:modulerr] Failed to instantiate module starter due to:
Error: [$injector:modulerr] Failed to instantiate module ngCordova due to:
现在我知道这与索引html有关,因为它无法以某种方式引用ngcordova服务

index.html

<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.4.3/angular-messages.js"></script>
<script src="lib/ionic-material/dist/ionic.material.min.js"></script>
<script src="lib/chart.js/dist/Chart.min.js"></script>

<!-- cordova script (this will be a 404 during development) -->


<script type="lib/ngCordova/dist/ng-cordova.min.js"></script>
<script src="cordova.js"></script>
<script type="lib/ng-cordova-oauth/dist/ng-cordova-oauth.js"></script>

<!-- your app's js -->
<script src="js/app.js"></script>

编辑:键入->src

而不是

<script type="lib/ngCordova/dist/ng-cordova.js"></script>
<script type="lib/ng-cordova-oauth/dist/ng-cordova-oauth.js"></scrip‌​t> 

编辑:键入->src

而不是

<script type="lib/ngCordova/dist/ng-cordova.js"></script>
<script type="lib/ng-cordova-oauth/dist/ng-cordova-oauth.js"></scrip‌​t> 

你是用Bower安装的吗?最初我用normal,然后用bowercheck拼写一次。你是用Bower安装的吗?最初我用normal,然后用bowercheck拼写一次。
<script src="lib/ngCordova/dist/ng-cordova.js"></script>
<script src="lib/ng-cordova-oauth/dist/ng-cordova-oauth.js"></script‌​>
angular.module('myApp', ['ngCordova'])