Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error when importing #6

Open
n00b0tt3r opened this issue Sep 9, 2019 · 13 comments
Open

Error when importing #6

n00b0tt3r opened this issue Sep 9, 2019 · 13 comments

Comments

@n00b0tt3r
Copy link

n00b0tt3r commented Sep 9, 2019

Hello, i have some errors when i want to use your component.
import { CreditCardField } from 'vue-credit-card-field';
>>> CreditCardField element is not exported

Any idea ?

@ataryandev
Copy link

typical error on my side.

@vitinhohnz
Copy link

vitinhohnz commented Oct 8, 2019

same error here

@emtiazzahid
Copy link

is there anyone found the solution for that ?

@reed-sandberg
Copy link

reed-sandberg commented Nov 16, 2019

I posted a fix: #9

This should work using the braces-style imports seen in the README and examples:
import { CreditCardField, InlineCreditCardField } from 'vue-credit-card-field';

@jangidgirish
Copy link

the issue is same in latest version

v0.3.14

WARNING in ./resources/js/components/ArtistBookingElement.vue?vue
&type=script&lang=js& (./node_modules/babel-loader/lib??ref--4-0!./node_modules/babel-loader/lib??ref--12-0!
./node_modules/vue-loader/lib??vue-loader-options!
./resources/js/components/ArtistBookingElement.vue?vue&type=script&lang=js&) 143:27-48


"export 'InlineCreditCardField' was not found in 'vue-credit-card-field'

@dougblackjr
Copy link

+1 for the fix on PR #9

@lluishi93
Copy link

Same happening here. Is this project maintained atm?

@hisaveliy
Copy link

Same issue

1 similar comment
@tmartty
Copy link

tmartty commented Jun 29, 2020

Same issue

@xcodervv
Copy link

xcodervv commented Nov 3, 2020

If you want to use it in any way, so...
First: you should import * as modulesVCCF from 'vue-credit-card-field';
or named it as you wish.
Second: in components section do the next:
components: {
InlineCreditCardField: modulesVCCF.default.InlineCreditCardField
},
After that you can work with it like with other components.

@elahekaramzade
Copy link

same error

2 similar comments
@italogustavoborba
Copy link

same error

@rezaansarirad
Copy link

same error

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests