matfish2 / vue-stripe

Vue.js 2 Stripe checkout component
https://www.npmjs.com/package/vue-stripe
MIT License
58 stars 18 forks source link

Failed to mount component: template or render function not defined #18

Closed mydnic closed 7 years ago

mydnic commented 7 years ago

Hello

I'm trying to use this package with Laravel Mix. Importing the package works fine, but when I'm loading the page, I get this error :

app.bfe0030….js:33937 [Vue warn]: Failed to mount component: template or render function not defined. 
(found in <StripeCheckout>)

Can you help me ?

Thanks a lot

albertleao commented 7 years ago

+1 same issue.

Initially I got the following error :

[Vue warn]: Unknown custom element: <stripe-checkout> - did you register the component correctly? For recursive components, make sure to provide the "name" option.

but then I changed

import { StripeCheckout } from 'vue-stripe'

to

import StripeCheckout from 'vue-stripe'

and now I receive the same error you have above.

fornve commented 7 years ago

+1 And here screenshot_2017-07-01_18-49-54

"vue-stripe": "^0.1.3", "vue": "2.3.3", node: v6.11.0 npm: 3.10.10

messerli90 commented 7 years ago

+1 here

vue-stripe: 0.1.3 vue: 2.3.4 node: v6.10.3 npm: 4.2.0