vue-krpano icon indicating copy to clipboard operation
vue-krpano copied to clipboard

Vue-krpano and nuxtjs

Open renardsas opened this issue 6 years ago • 2 comments

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,

renardsas avatar Mar 10 '18 20:03 renardsas

+++ seems like krpano require template compiler however vue-cli3 not provide it by default

Sun1ive avatar Mar 22 '18 08:03 Sun1ive

nuxt.config.js

build: { extend(config, ctx) { config.resolve.alias.vue = 'vue/dist/vue.common'; } }

or2e avatar Mar 02 '20 20:03 or2e