After installing in-app-purchase2 error

Module ‘"…/…/…/project_name/types/@ionic-native/in-app-purchase-2"’ has no exported member ‘InAppPurchase2’.ts(2305)

error come after installing and when i try to import the plugin in app.module.ts in ionic3 project.

Hi, @rajputsachin
In app.module.ts try to import plugin using this line

import { InAppPurchase2 } from '@ionic-native/in-app-purchase-2/ngx';

For more information take a look here.

Hope it will solve your problem.

this is for ionic4 i have used ionic3. this is not working.

try this for ionic v3

thanks

thanks i used this but it is giving error when i importing in app.module.ts

Module ‘"…/…/…/project name/types/@ionic-native/in-app-purchase-2"’ has no exported member ‘InAppPurchase2’.ts(2305).

try to remove below npm plugin

npm uninstall @ionic-native/in-app-purchase-2

and add

npm install --save @ionic-native/in-app-purchase-2@4

it my editor it will show only InAppPurchase not InApppurchase 2 and i install and want InApppurchase2

issue in plugins solved by deleting and again installing.