Open
Description
Hi there!
I have implemented vue-awesome in my vue/nuxt project and am now noticing in the console that I am getting this error regarding a mismatch between client-side and server-side:
[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 <p>, or missing <tbody>. Bailing hydration and performing full client-side render.
I have followed all instructions for using vue-awesome in nuxt2
From nuxt.config:
{
src: '~plugins/vue-awesome.js',
ssr: false
},
{ src: '~/plugins/localStorage.js', ssr: false }
],
/*
** Nuxt.js dev-modules
*/
buildModules: [
],
/*
** Nuxt.js modules
*/
modules: [
'bootstrap-vue/nuxt'
],
/*
** Build configuration
*/
build: {
transpile: [/vue-awesome/],
/*
** You can extend webpack config here
*/
extend (config, ctx) {
// config.module.rules.push({
// test: /\.styl$/,
// use: [
// 'vue-style-loader',
// 'css-loader',
// 'stylus-loader'
// ]
// })
}
From plugins:
import Vue from 'vue'
import Icon from 'vue-awesome/components/Icon.vue'
require('vue-awesome/icons')
Vue.component('icon', Icon)
Then from component:
<div class="mute-icon border-white rounded-circle pt-5" @click="toggleMute()" style="height: 20px">
<icon name="volume-mute" color="#d3d3d3" scale="2" v-if="muted"></icon>
</div>
Been debugging for hours and still scratching my head, would greatly appreciate any help! ```
Metadata
Assignees
Labels
No labels