vue-krpano
vue-krpano copied to clipboard
Vue-krpano and nuxtjs
Hey, I try krpano with nuxtjs and it doesn't work. My config (plugin/vue-krpano.js) : `import Vue from 'vue' import Krpano from "vue-krpano";
Vue.use(Krpano);`
I have this error : TouchEvent is not defined krpano player is required And vue warm : `[Vue warn]: You are using the runtime-only build of Vue where the template compiler is not available. Either pre-compile the templates into render functions, or use the compiler-included build.
[Vue warn]: The client-side rendered virtual DOM tree is not matching server-rendered content. This is likely caused by incorrect HTML markup, for example nesting block-level elements inside
, or missing
. Bailing hydration and performing full client-side render.How can I use vue-krpano with nuxt ? Thanks,
+++ seems like krpano require template compiler however vue-cli3 not provide it by default
nuxt.config.js
build: { extend(config, ctx) { config.resolve.alias.vue = 'vue/dist/vue.common'; } }