2017-04-19 74 views
0

我只是跟着離子文檔設置離子部署上的應用程序,但我仍然得到這個錯誤:找不到名稱「部署」。 說明如下:http://docs.ionic.io/services/deploy/ 我在主組件代碼(app.component.ts):離子2找不到部署

import { Component, ViewChild } from '@angular/core'; 
import { Deploy } from '@ionic/cloud-angular'; 
import { Nav, Platform } from 'ionic-angular'; 
import { StatusBar } from '@ionic-native/status-bar'; 
import { SplashScreen } from '@ionic-native/splash-screen'; 


import { HomePage } from '../pages/home/home'; 
import { EventPage } from '../pages/event/event'; 
import { LoginPage } from '../pages/login/login'; 
import { ProfilePage } from '../pages/profile/profile'; 

import { AuthService } from '../services/auth.service'; 
import { UpcomingEventsPage } from "../pages/upcoming-events/upcoming-events"; 
import { CoursesService } from "../services/courses.service."; 

@Component({ 
    templateUrl: 'app.html' 
}) 
export class MyApp { 
    @ViewChild(Nav) nav: Nav; 

    availableUpdate: boolean = false; 

    rootPage: any = HomePage; 
    loading: boolean = false; 

    pages: Array<{ title: string, component: any, params: any }>; 

    constructor(
     public platform: Platform, 
     public statusBar: StatusBar, 
     public splashScreen: SplashScreen, 
     public coursesService: CoursesService, 
     private authService: AuthService 
     ,public deploy: Deploy 
     ) { 
    this.initializeApp(); 

回答

1

只需要安裝的先決條件:角雲。