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 in beforeMount hook: IntegrationError: Can only create one Element of type card. #12

Closed
benjaminkluegel opened this Issue Aug 30, 2017 · 14 comments

Comments

Projects
None yet
@benjaminkluegel
Copy link

benjaminkluegel commented Aug 30, 2017

This happens when i leave and reenter the checkout route... any ideas?

"Error in beforeMount hook: "IntegrationError: Can only create one Element of type card."

@jasonlfunk

This comment has been minimized.

Copy link

jasonlfunk commented Aug 31, 2017

I'm having the same issue.

@nkoehring

This comment has been minimized.

Copy link
Contributor

nkoehring commented Aug 31, 2017

@benjaminkluegel @jasonlfunk
better use beforeCreate then or use the components destroy hook to destroy the element

@jasonlfunk

This comment has been minimized.

Copy link

jasonlfunk commented Sep 1, 2017

It's not obvious to me how to destroy the element. It doesn't look like the component provides access to it.

Shouldn't the component take care of that anyways? Am I not using the component correctly?

@rizr

This comment has been minimized.

Copy link

rizr commented Sep 3, 2017

+1

@Christilut

This comment has been minimized.

Copy link

Christilut commented Sep 9, 2017

Same here, not sure how/if I can destroy it before HMR update but I would think the component is supposed to do that itself.

@sam3d

This comment has been minimized.

Copy link

sam3d commented Sep 16, 2017

Any update on this? The PR #14 appears to fix this.

/cc @nkoehring

@nkoehring

This comment has been minimized.

Copy link
Contributor

nkoehring commented Sep 20, 2017

@sam3d @Christilut @rizr @benjaminkluegel A new version including @jasonlfunk's PR is published now. Thanks for you patience! Please know that the development now happens in my fork at nkoehring/vue-stripe-elements

@softbeehive softbeehive changed the title Issue... Error in beforeMount hook: IntegrationError: Can only create one Element of type card. Oct 13, 2017

@softbeehive

This comment has been minimized.

Copy link
Contributor

softbeehive commented Oct 13, 2017

Closed by #14

@safaorhan

This comment has been minimized.

Copy link

safaorhan commented Sep 14, 2018

Hello I'm getting the same error with version 0.2.9 as of today.

It happens when I dynamically change the DOM. (e.g. conditionally show/hide a sibling element with v-if v-else)

screen shot 2018-09-15 at 00 50 52

@marcoT89

This comment has been minimized.

Copy link

marcoT89 commented Sep 17, 2018

Same issue here. What is the workaround? I didn't get it...

@jbhamilton

This comment has been minimized.

Copy link

jbhamilton commented Oct 10, 2018

Same #15 stated that it was fixed almost a year ago but it's still happening for me using v0.2.9

@danielcharrua

This comment has been minimized.

Copy link

danielcharrua commented Dec 4, 2018

Building a SPA with two views that use the Card component I get the exact same error, any ideas or fix to this issue? Using v0.2.9

@danielcharrua

This comment has been minimized.

Copy link

danielcharrua commented Dec 4, 2018

In my app I have three routes, let's say 1, 2 and 3.
2 and 3 use Card components and if I switch within these routes the error is shown, but if I click route number 1 in between those two routes, the error is not shown and it renders both routes as it should.
Any ideas?

@nachomozo

This comment has been minimized.

Copy link

nachomozo commented Dec 10, 2018

Same error here on hot reloading using 0.2.9

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