Open shyamal890 opened 1 month ago
Hard to say
try not to use it as a provider
import { FFMpeg } from '@awesome-cordova-plugins/ffmpeg';
If I remove FFMpeg from module provider array then I get the following error when I try to utilize it in the service constructor:
taskModal.ts:165 ERROR NullInjectorError: R3InjectorError[AudioService -> AudioService -> AudioService -> [object Object] -> [object Object]]: NullInjectorError: No provider for [object Object]!
import { FFMpeg } from '@awesome-cordova-plugins/ffmpeg/ngx';
@Injectable({
providedIn: 'root'
})
export class AudioService {
constructor(
private ffMpeg: FFMpeg
) {
}
I'm submitting a ... (check one with "x")
Current behavior: Adding @awesome-cordova-plugins/ffmpeg 's FFMpeg to module providers gives following error:
Invalid provider for the NgModule 'AppModule' - only instances of Provider and Type are allowed, got: [?[object Object]?, ..., ..., ...]
Expected behavior:
Steps to reproduce:
import { FFMpeg } from '@awesome-cordova-plugins/ffmpeg/ngx';
)Related code:
Other information:
Ionic info: (run
ionic info
from a terminal/cmd prompt and paste output below):