Skip to content

Use with nuxt typescript #178

@zecka

Description

@zecka

Any way to use it with typescript ?

Currently i have following error:
Module '"../../../../node_modules/v-stripe-elements/types"' has no exported member 'VStripeCard'

I try also to import like that:

import { VStripeCard } from 'v-stripe-elements/lib/index'

And then add declare module 'v-stripe-elements/lib/index' in a .d.ts file

But then I have following error:
Cannot use import statement outside a module

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions