I've integrated the vue-loading-overlay plugin into my project.
plugins/vueloadingoverlaylibrary.js
import Vue from 'vue';
import Loading from 'vue-loading-overlay';
// import 'vue-loading-overlay/dist/vue-loading.css';
Vue.use(Loading)
nuxt.config.js
plugins: [
'@/plugins/vueloadingoverlaylibrary.js'
]
- Encountering an issue
TypeError (0 , external_commonjs_vue_commonjs2_vue_amd_vue_root_Vue_.createStaticVNode) is not a function
I am facing this error in nuxt v.2x, while it was working fine with vue2.x version. It seems to be specific to nuxt2.x.