aspnetcore-Vue-starter icon indicating copy to clipboard operation
aspnetcore-Vue-starter copied to clipboard

Any luck getting this to work with Buefy?

Open Morkaleb opened this issue 7 years ago • 3 comments

So I've followed the instructions here: https://buefy.github.io/#/documentation/start

placing the Vue.Use(Beufy.default) in app-root

This has created the error "Cannot read property 'install' of undefined"

Am I missing something?

Morkaleb avatar Mar 12 '18 22:03 Morkaleb

Ok, I figured out the problem, thanks to anyone who looked :)

Morkaleb avatar Mar 12 '18 23:03 Morkaleb

;) Please tell us what you've done. It might help anyone getting an error while using Beufy.

Nordes avatar Mar 14 '18 12:03 Nordes

I was adding it to the client app in app-root using:

`<template>...</template
<script>
    using Buefy from 'Buefy'
   ......

Vue.Use(Buefy)
</script
`

like that it didn't work, no components could see any Buefy components as registered.

I put it in App.js, like this:


`import Vue from 'vue'
import axios from 'axios'
import router from './router'
import store from './store'
import { sync } from 'vuex-router-sync'
import App from 'components/app-root'
import Buefy from 'buefy'
import 'buefy/lib/buefy.css'


Vue.prototype.$http = axios;
Vue.use(Buefy)
sync(store, router)

const app = new Vue({
    store,
    router,
    ...App
})

export {
    app,
    router,
    store
}
`


```And now it works

Morkaleb avatar Mar 16 '18 17:03 Morkaleb