yuche / vue-strap

Bootstrap components built with Vue.js
http://yuche.github.io/vue-strap/
MIT License
4.71k stars 935 forks source link

problem in use with Nuxt.js #449

Open Alexey-Myshevskiy opened 7 years ago

Alexey-Myshevskiy commented 7 years ago

I tried do how described in docs: `var alert = require('vue-strap/src/alert'); // or var alert = require('vue-strap').alert;

new Vue({ components: { alert: alert } }) but problem is [Vue warn]: Unknown custom element: - did you register the component correctly? For recursive components, make sure to provide the "name" option. (found in anonymous component at /home/alexey-dev/WebStormProjects/vueWebDevStudio/pages/blog/index.vue)` How plug this library correctly to Nuxt project anyone know?

teamgroove commented 7 years ago

Nuxtjs uses Vue2. This project uses Vue1. You will have to switch to: https://github.com/wffranco/vue-strap But right now, there is another problem left with SSR (serverside rendering). I managed to fix it, but i need to have a PR accepted for it. Patience.