Closed robinscholz closed 6 years ago
I'm currently trying to implement vue-paypal-checkout as a nuxt plugin, but can’t get it to work.
/plugins/vue-paypal.js
import Vue from 'vue' import PayPal from 'vue-paypal-checkout' Vue.use(PayPal, {name: 'paypal'})
nuxt.config.js
plugins: [ { src: '~/plugins/vue-paypal.js', ssr: false } ]
Console error
[Vue warn]: Unknown custom element: <paypal> - did you register the component correctly? For recursive components, make sure to provide the "name" option.
Any idea why this is not working?
Solved with /plugins/vue-paypal.js:
import Vue from 'vue' import paypal from 'vue-paypal-checkout' Vue.component('paypal', paypal)
I'm currently trying to implement vue-paypal-checkout as a nuxt plugin, but can’t get it to work.
/plugins/vue-paypal.js
nuxt.config.js
Console error
Any idea why this is not working?