triniwiz / nativescript-plugins

Apache License 2.0
80 stars 51 forks source link

export 'CreditCardView' (imported as 'CreditCardView') was not found in '@triniwiz/nativescript-stripe/vue' (possible exports: default) #103

Closed seivad closed 2 years ago

seivad commented 2 years ago

Hey guys i'm getting this error using Nativescript 8 and Vue when importing this, not sure how to get around this issue.

export 'CreditCardView' (imported as 'CreditCardView') was not found in '@triniwiz/nativescript-stripe/vue' (possible exports: default)

Let me know if you can help me resolve it. It works fine on Nativescript 7 and Vue app.

seivad commented 2 years ago
import Vue from 'nativescript-vue'
import CreditCardView from '@triniwiz/nativescript-stripe/vue'
Vue.use(CreditCardView)

Seemed to do the trick. I did have in Nativescript v7 version:

import { CreditCardView } from '@triniwiz/nativescript-stripe/vue'

incase anyone else gets this error when upgrading their nativescript project. This stuff always finds a fix after your post the issue...