Skip to content

Cannot find module '@revenuecat/purchases-ui-js' or its corresponding type declarations #731

Description

@dvGomez

Hey guys,

I'm currently facing an issue when trying to use @revenuecat/purchases-js in my angular/capacitor project.

I'm getting this error:

    X [ERROR] TS2307: Cannot find module '@revenuecat/purchases-ui-js' or its corresponding type declarations. [plugin angular-compiler]
    node_modules/@revenuecat/purchases-js/dist/Purchases.es.d.ts:2:25:
      2 │ import { UIConfig } from '@revenuecat/purchases-ui-js';
        ╵                          ~~~~~~~~~~

Going through the file I can see there are two unused imports:

import { PaywallData } from '@revenuecat/purchases-ui-js';
import { UIConfig } from '@revenuecat/purchases-ui-js';

For now, I'm thinking to download the project remove the imports and recompile the library locally. Do you have any other suggestions instead of this one?

Thanks.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions