After installing in-app-purchase2 error

#1

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.

#2

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.

#3

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

#4

try this for ionic v3

thanks

#5

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).

#6

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
#7

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

#8

issue in plugins solved by deleting and again installing.