Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

117
Views
Cordova plugin in Angular 4 Typescript application

I want to use the cc.fovea.cordova.purchase plugin in an Angular4 application + Cordova.

I added the plugin to config.xml:

<platform name="android">
    ...
    <plugin name="cc.fovea.cordova.purchase" spec="https://github.com/j3k0/cordova-plugin-purchase.git">
        <param name="BILLING_KEY" value="XXX"/>
    </plugin>
</platform>

I also added typed-cordova-plugin-purchase to devDependencies in package.json and to typeRoots in tsconfig.json.

When I'm trying

import { store, IStore, IProduct } from "cc.fovea.cordova.purchase";

I get

Module not found: Error: Can't resolve 'cc.fovea.cordova.purchase'

What is the correct way of using a Cordova plugin in an Angular 4 Typescript app?

over 4 years ago · Santiago Trujillo
1 answers
Answer question

0

I had to do one more thing, add node_modules/typed-cordova-plugin-purchase to typeRoots and typed-cordova-plugin-purchase to types in tsconfig.json.

over 4 years ago · Santiago Trujillo Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!