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:
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. !!!