# Ionic InAppPurchase2

**URL:** <https://forum.ionicframework.com/t/ionic-inapppurchase2/205482>\
**Category:** Ionic Angular\
**Created:** [February 25, 2021, 12:33pm UTC](https://forum.ionicframework.com/t/ionic-inapppurchase2/205482 "2021-02-25T12:33:48Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![ArinaAmir](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/arinaamir/32/136523_2.png) [@ArinaAmir](https://forum.ionicframework.com/u/ArinaAmir)\
**Post date:** [February 25, 2021, 12:33pm UTC](https://forum.ionicframework.com/t/ionic-inapppurchase2/205482/1 "2021-02-25T12:33:48Z")

</div>

Hello,

I want to integrate InAppPurchase to my application and for testing purposes I have created a new blank project (Ionic v 5.4.16 Angular) and after running the following commands

> ionic cordova plugin add cc.fovea.cordova.purchase  
> npm install @ionic-native/in-app-purchase-2  
> my app is not working anymore. I am getting the following error:

```auto
Build at: 2021-02-25T12:29:02.721Z - Hash: 1ed3c0940f90e4a22342 - Time: 911ms
[ng] √ Compiled successfully.
[ng] C:\Users\Asus\Desktop\testPur\node_modules\@angular\compiler-cli\ngcc\src\entry_point_finder\targeted_entry_point_finder.js:40
[ng] throw new Error("The target entry-point \"" + invalidTarget.entryPoint.name + "\" has missing dependencies:\n" +
[ng] ^
[ng] Error: The target entry-point "@ionic-native/in-app-purchase-2" has missing dependencies:
[ng] - @ionic-native/core
[ng] at TargetedEntryPointFinder.findEntryPoints (C:\Users\Asus\Desktop\testPur\node_modules\@angular\compiler-cli\ngcc\src\entry_point_finder\targeted_entry_point_finder.js:40:23)
[ng] at C:\Users\Asus\Desktop\testPur\node_modules\@angular\compiler-cli\ngcc\src\execution\analyze_entry_points.js:28:41
[ng] at SingleProcessExecutorSync.SingleProcessorExecutorBase.doExecute (C:\Users\Asus\Desktop\testPur\node_modules\@angular\compiler-cli\ngcc\src\execution\single_process_executor.js:28:29)
[ng] at C:\Users\Asus\Desktop\testPur\node_modules\@angular\compiler-cli\ngcc\src\execution\single_process_executor.js:57:59
[ng] at SyncLocker.lock (C:\Users\Asus\Desktop\testPur\node_modules\@angular\compiler-cli\ngcc\src\locking\sync_locker.js:34:24)
[ng] at SingleProcessExecutorSync.execute (C:\Users\Asus\Desktop\testPur\node_modules\@angular\compiler-cli\ngcc\src\execution\single_process_executor.js:57:27)
[ng] at Object.mainNgcc (C:\Users\Asus\Desktop\testPur\node_modules\@angular\compiler-cli\ngcc\src\main.js:74:25)
[ng] at Object.process (C:\Users\Asus\Desktop\testPur\node_modules\@angular\compiler-cli\ngcc\index.js:29:23)
[ng] at NgccProcessor.processModule (C:\Users\Asus\Desktop\testPur\node_modules\@ngtools\webpack\src\ngcc_processor.js:163:16)
[ng] at C:\Users\Asus\Desktop\testPur\node_modules\@ngtools\webpack\src\ivy\host.js:55:18
[ng] at C:\Users\Asus\Desktop\testPur\node_modules\@ngtools\webpack\src\ivy\host.js:47:24
[ng] at Array.map (<anonymous>)
[ng] at Object.host.resolveModuleNames (C:\Users\Asus\Desktop\testPur\node_modules\@ngtools\webpack\src\ivy\host.js:45:32)
[ng] at actualResolveModuleNamesWorker (C:\Users\Asus\Desktop\testPur\node_modules\typescript\lib\typescript.js:102904:133)
[ng] at resolveModuleNamesWorker (C:\Users\Asus\Desktop\testPur\node_modules\typescript\lib\typescript.js:103126:26)
[ng] at resolveModuleNamesReusingOldState (C:\Users\Asus\Desktop\testPur\node_modules\typescript\lib\typescript.js:103276:19)

```

Any help will be REALLY appreciated. !!!

---

<div class="post-metadata">

**Author:** ![rgustavsson0](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/rgustavsson0/32/138283_2.png) [@rgustavsson0](https://forum.ionicframework.com/u/rgustavsson0)\
**Post date:** [July 4, 2021, 1:22pm UTC](https://forum.ionicframework.com/t/ionic-inapppurchase2/205482/2 "2021-07-04T13:22:32Z")

</div>

Hello @ArinaAmir

Try installing the following package:

```auto
npm install @ionic-native/core

```

and it should work.
