Error while using Sms Retriever plugin

Getting this error while importing package

Type 'SmsRetrieverOriginal' is not assignable to type 'Provider'.
  Type 'SmsRetrieverOriginal' is missing the following properties from type 'FactoryProvider': provide, useFactoryts(2322)

How are you importing it? Show some more code

In app.module.ts

import { SmsRetriever } from '@ionic-native/sms-retriever/ngx';

then in the providers array I’m adding this SmsRetriever