Ioni c 5 angular невозможно объявить плагин файла - PullRequest
0 голосов
/ 08 мая 2020

Я пытаюсь добавить плагин File в свой проект Ioni c 5, появляется следующая ошибка.

Я объявил файл в приложении.

ОШИБКА в node_modules/@ionic-native/file/ngx/index.d.ts: 570: 22 - ошибка NG6002: появляется в NgModule.imports модуля AppModule, но не может быть разрешена в класс NgModule.

This likely means that the library (@ionic-native/file/ngx) which declares File has not been processed correctly by ngcc, or is not compatible with Angular Ivy. Check if a newer version of the library is available, and update if so. Also consider checking with the library's authors to see if the library is expected to be compatible with Ivy.

570 export declare class File extends IonicNativePlugin {
import { File } from '@ionic-native/file/ngx';


@NgModule({
  declarations: [
    AppComponent,
  ],
  imports: [
    BrowserModule,
    BrowserAnimationsModule,
    HttpClientModule,
    PipeModule,
    FormsModule,
    ReactiveFormsModule,

    File,
  ],
  providers: [
    StatusBar,
    SplashScreen,
    NativePageTransitions,
    {
      provide: RouteReuseStrategy,
      useClass: IonicRouteStrategy
    }
  ],
  schemas: [CUSTOM_ELEMENTS_SCHEMA],
  bootstrap: [AppComponent]
})
export class AppModule { }




Ionic:

   Ionic CLI                     : 6.5.0 
   Ionic Framework               : @ionic/angular 5.1.0 
   @angular-devkit/build-angular : 0.901.4
   @angular-devkit/schematics    : 9.1.1
   @angular/cli                  : 9.1.1
   @ionic/angular-toolkit        : 2.2.0 

Capacitor:

   Capacitor CLI   : 2.1.0
   @capacitor/core : 1.5.2



Angular CLI: 9.1.1
Node: 12.16.1
OS: win32 x64

Angular: 9.1.6
... animations, common, compiler, compiler-cli, core, forms
... language-service, localize, platform-browser
... platform-browser-dynamic, router, service-worker
Ivy Workspace: Yes


Not sure if its issue with the plugin or I am doing something wrong.
Any help will be appreciated.


...