Coder Social home page Coder Social logo

Comments (5)

vouill avatar vouill commented on June 3, 2024 2

Looks like a good solution ! Thanks for helping @geoandrew .

Closing this issue then, anyone can feel free to reopen if needed :).

from vue-slideout.

popstas avatar popstas commented on June 3, 2024 1

plugins/vue-slideout.js:

import Vue from 'vue';
import Slideout from 'vue-slideout';
Vue.component('Slideout', Slideout);

nuxt.config.js:

  plugins: [
    { src: '~/plugins/vue-slideout', ssr: false }
  ],

from vue-slideout.

popstas avatar popstas commented on June 3, 2024 1

I'm using slideout with nuxt (see config in previous comment) and got error:

The client-side rendered virtual DOM tree is not matching server-rendered content

See nuxt/nuxt#1700, you can avoid this error with wrapping <Slideout> to <no-ssr> tag

from vue-slideout.

vouill avatar vouill commented on June 3, 2024

Hello !

So, the first thing to know is that i have never used nuxt, so any kind of help would be apreciated :)

I will check it out a bit further tonight if i can !

Thanks for the issue report !

from vue-slideout.

geoandrew avatar geoandrew commented on June 3, 2024

Hi Folks;

I just ran into the same problem. It's to do with Server Side Rendering. Please see https://nuxtjs.org/guide/plugins and the section on Client Side Rendering.

I created a plugin file and added slideout. In the plugin def, make sure 'ssr: false'
Then, remove the explicit import and component definition in your page file.

Hope this helps someone!

from vue-slideout.

Related Issues (16)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.