Angular 财产';readFiles';是私有的,只能在类内访问';ImageUploadDirective';
在我的angular 2项目中,当我运行npm run build:prod时,我遇到了一个错误。有人能推荐mean 2.0(angular和nodejs)的种子项目吗 我的appmodule.ts是Angular 财产';readFiles';是私有的,只能在类内访问';ImageUploadDirective';,angular,Angular,在我的angular 2项目中,当我运行npm run build:prod时,我遇到了一个错误。有人能推荐mean 2.0(angular和nodejs)的种子项目吗 我的appmodule.ts是 import { ImageUploadDirective, ImageUploadModule } from 'ng2-imageupload'; import { MapComponent } from './map/mapComponent'; import { AgmCo
import { ImageUploadDirective, ImageUploadModule } from 'ng2-imageupload';
import { MapComponent } from './map/mapComponent';
import { AgmCoreModule } from 'angular2-google-maps/core';
import { HttpModule } from '@angular/http';
import { routing } from './app.routing';
@NgModule({
declarations: [
AppComponent,
MapComponent,
Add_address,Add_City,Add_District,Add_sub_urbans
],
imports: [AgmCoreModule.forRoot({
apiKey: "Key",
libraries: ["places"]
}),
BrowserModule,
ImageUploadModule,
],
providers:[ApiMessageService,RealEstateService],
bootstrap: [AppComponent]
})
export class AppModule {
}
错误消息尽可能详细。您不应该访问私有字段。我在项目中没有使用like readFiles属性,可能存在重复项
import { ImageUploadDirective, ImageUploadModule } from 'ng2-imageupload';
import { MapComponent } from './map/mapComponent';
import { AgmCoreModule } from 'angular2-google-maps/core';
import { HttpModule } from '@angular/http';
import { routing } from './app.routing';
@NgModule({
declarations: [
AppComponent,
MapComponent,
Add_address,Add_City,Add_District,Add_sub_urbans
],
imports: [AgmCoreModule.forRoot({
apiKey: "Key",
libraries: ["places"]
}),
BrowserModule,
ImageUploadModule,
],
providers:[ApiMessageService,RealEstateService],
bootstrap: [AppComponent]
})
export class AppModule {
}