Ionic native plugin File breaks ionic 6 capacitor app

Dear community,
I need some help.
I followed File API Plugin for Read and Write File Access on Devices, when running the app on ios, got the following error:
To Native Cordova → File requestAllPaths File735382676 :zap: [log] - onscript loading complete
[“options”: ]
:zap: WebView loaded
:zap: [error] - ERROR {“name”:“NullInjectorError”,“ngTempTokenPath”:null,“ngTokenPath”:[“V”,“M”,“M”,“M”]}
:zap: [log] - {“name”:“NullInjectorError”,"ngTempT
Anyone had the same?
Any help would be much appreciated.

=============================================================
$ ionic info

Ionic:

Ionic CLI : 6.20.5 (/usr/local/lib/node_modules/@ionic/cli)
Ionic Framework : @ionic/angular 6.4.1
@angular-devkit/build-angular : 15.0.4
@angular-devkit/schematics : 15.0.4
@angular/cli : 15.0.4
@ionic/angular-toolkit : 6.1.0

Capacitor:

Capacitor CLI : 4.6.1
@capacitor/android : 4.6.1
@capacitor/core : 4.6.1
@capacitor/ios : 4.6.1

Utility:

cordova-res : 0.15.4
native-run : 1.7.1

System:

NodeJS : v18.12.1 (/usr/local/bin/node)
npm : 8.19.2
OS : macOS Big Sur

:flushed:
Sorry, seems to be a rookie mistake. Quite some time haven’t been working on my app.

Forgot to add the plugin to the app.module.ts:
providers: [
File,
Media,
AppRate,
NativeStorage,
Dialogs,
{ provide: RouteReuseStrategy, useClass: IonicRouteStrategy }],
bootstrap: [AppComponent]