错误构建Cordova项目VS2015 TS2503 TypeScript无法找到命名空间''核心"

时间:2016-01-09 17:49:52

标签: cordova

我一直在尝试为andorid构建我的cordova项目,它构建时出现错误:TS2503 TypeScript无法找到名称空间'' Core"。在app.ts 错误的来源:

module SpeedSail {
"use strict";

angular.module("SpeedSail", ["SpeedSail.Core"])
    .run(['$cordova', function ($cordova: Core.Services.ICordovaService) {

    $cordova
        .ready(function () {
        // TODO: Cordova has been loaded. Perform any initialization that requires Cordova here.

    })
        .onPause(function () {
        // TODO: This application has been suspended. Save application state here.

    })
        .onResume(function () {
        // TODO: This application has been reactivated. Restore application state here.

    })
        .on('online', function () {
        // TODO: The application is currently online. Set the application behavior here.
        // Don't forget to add the org.apache.cordova.network-information plugin in order to have this event working.

    })
        .on('offline', function () {
        // TODO: The application is currently offline. Set the application behavior here.
        // Don't forget to add the org.apache.cordova.network-information plugin in order to have this event working.

    })
        .on('batterycritical', function () {
        // TODO: The device is entering the battery critical status. Set the application behavior here.
        // Don't forget to add the org.apache.cordova.battery-status plugin in order to have this event working.

    });
}]);

} 错误来源

Core.Services.ICordovaService

我无法弄清楚这个问题我根本没有改变这个代码。任何想法?

0 个答案:

没有答案