Angular 注入SQLitePorter时出错:此构造函数与角度依赖注入不兼容

Angular 注入SQLitePorter时出错:此构造函数与角度依赖注入不兼容,angular,cordova,ionic-framework,Angular,Cordova,Ionic Framework,我的服务组件的构造函数有问题,但我无法解决。我正在尝试注入SQLitePorter,但出现以下错误: core.js:6241 ERROR Error: Uncaught (in promise): Error: This constructor is not compatible with Angular Dependency Injection because its dependency at index 3 of the parameter list is invalid. This c

我的服务组件的构造函数有问题,但我无法解决。我正在尝试注入SQLitePorter,但出现以下错误:

core.js:6241 ERROR Error: Uncaught (in promise): Error: This constructor is not compatible with Angular Dependency Injection because its dependency at index 3 of the parameter list is invalid.
This can happen if the dependency type is a primitive like a string or if an ancestor of this class is missing an Angular decorator.

Please check that 1) the type for the parameter at index 3 is correct and 2) the correct Angular decorators are defined for this class and its ancestors.
Error: This constructor is not compatible with Angular Dependency Injection because its dependency at index 3 of the parameter list is invalid.
This can happen if the dependency type is a primitive like a string or if an ancestor of this class is missing an Angular decorator.

Please check that 1) the type for the parameter at index 3 is correct and 2) the correct Angular decorators are defined for this class and its ancestors. 
我的服务及其构造函数如下所示

import { BehaviorSubject } from 'rxjs';
import { Platform } from '@ionic/angular';
import { DatePipe } from '@angular/common';

import { SQLite, SQLiteObject } from '@ionic-native/sqlite/ngx';
import { SQLitePorter } from '@ionic-native/sqlite-porter/ngx';

@Injectable({
  providedIn: 'root'
})
export class DatabaseService {
  constructor(private plt: Platform, private sqlite: SQLite, private datepipe: DatePipe, private sqlPorter: SQLitePorter) { 
问题肯定出在构造函数上,但它不是特定于组件的。在我的应用程序的其他组件中,我得到了相同的错误,但这只是与这个cordova插件。其他注射效果良好。谢谢你的帮助