我將我的離子2應用程序導入到視覺工作室。在我這樣做之前,沒有任何構建錯誤,但知道它給了我以下錯誤;離子2在視覺工作室構建錯誤
這是我的firms.ts文件;
import { Component } from '@angular/core';
import { FirmService } from '../../providers/getFirms';
import { Observable } from 'rxjs/Rx';
import {ReportsPage} from '../report/report';
import { Auth } from '../../providers/auth';
import {LoginPage} from '../login-page/login-page';
import { NavController, ModalController, AlertController, LoadingController,NavParams } from 'ionic-angular';
import {
FormGroup,
FormControl
} from '@angular/forms';
/*
Generated class for the Firms page.
See http://ionicframework.com/docs/v2/components/#navigation for more info on
Ionic pages and navigation.
*/
@Component({
selector: 'page-firms',
templateUrl: 'firms.html'
})
export class FirmsPage {
langs;
langForm;
loading: any;
username : string;
firms: string[];
constructor(public navCtrl: NavController, private navParams: NavParams, public firmService: FirmService, public loadingCtrl: LoadingController, public authService: Auth) {
this.getFirms();
this.username = this.navParams.get("param");
this.langForm = new FormGroup({
"langs": new FormControl('')
});
}
它怎麼能找不到它們。我想,我輸入了正確的路徑。
nope,我正在使用正確的類名。該應用程序在我將其導入Visual Studio之前已經運行。這個問題與typings和typcript有關 – cano