wails: Vuetify template does not support vue-router
os: windows 8 64bit golang: 1.12.0 node: 10.9.0 npm: 6.2.0 wails: 0.17.0
frontend import vue-router , wails build -f again, show error ‘wails‘ undefined
// main.js
import VueRouter from 'vue-router';
Vue.use(VueRouter);
import routers from "./router.js";
const router = new VueRouter({
routes: routers,
})
Bridge.Start(() => {
new Vue({
router,
render: h => h(App)
}).$mount("#app");
});
About this issue
- Original URL
- State: closed
- Created 5 years ago
- Comments: 21 (14 by maintainers)
ive got an idea of wails serve + npm run serve and then open the page on internet explorer (instead of chrome or edge)
We are looking at replacing WebView as a priority right now and our alternative has support for EdgeHTML which will hopefully fix a lot of Windows issues like this. 🤞
Hey, just had a message from @adeyinkabadmus that may help with your Vue Router issues. He said he has a fix! https://github.com/wailsapp/wails/issues/236#issuecomment-532741700
just to confirm, I built this awesome tutorial: https://github.com/iamshaunjp/vuetify-playlist/tree/lesson-15 on ubuntu and not only works it looks amazing too!
Thanks for your help. @leaanthony
hello @bh90210, The image below is a screenshot of the window where the error occurred.