import Vue from 'vue'
import VueVirtualKeyboard from 'vue-virtual-keyboard'
// You need a specific loader for CSS files like https://github.com/webpack/css-loader
import 'vue-virtual-keyboard/dist/vue-virtual-keyboard.css'
Vue.use(VueVirtualKeyboard)
And added it to nuxt.config.js
plugins: [
'~/plugins/vue-virtual-keyboard'
],
Then I created a nuxtjs page:
~/pages/testkeyboard.vue
I made a plugin:
~/plugins/vue-virtual-keyboard.js
:And added it to
nuxt.config.js
Then I created a nuxtjs page:
~/pages/testkeyboard.vue
I get the error: " jQuery requires a window with a document "