Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to we integrate with Nuxt.jS? #33

Open
rlam3 opened this issue Oct 1, 2017 · 5 comments
Open

How to we integrate with Nuxt.jS? #33

rlam3 opened this issue Oct 1, 2017 · 5 comments

Comments

@rlam3
Copy link

rlam3 commented Oct 1, 2017

How to we integrate with Nuxt.jS?

screen shot 2017-10-01 at 7 33 52 am

# plugins/vue-waterfall.js

import Vue from 'vue'
import VueWaterfall from 'vue-waterfall'

Vue.use(VueWaterfall)

@MopTym Thanks!

@nikkanetiya
Copy link

@rlam3 if you haven't solved this issue, turn off SSR. Because of if you won't specify this plugin will try to look for a document which will not be there in server render. This issue not related with vue-waterfall, you can close this issue.

{ src: '~/plugins/vue-waterfall.js', ssr: false }

@lingsang2
Copy link

f324b74e-561e-435d-995d-9de94ea7e604

@nikkanetiya
Copy link

@lingsang2 you can't use waterfall if you are working with SSR. Turn off SSR to like this or else do bind components only on the client side, simply because if there will no document on a server it is only present in the client-side browser.

@Nisthar
Copy link

Nisthar commented Apr 25, 2018

@nikkanetiya #12 (comment)

@MopTym Can you confirm if it works with SSR?

@xmqywx
Copy link

xmqywx commented May 16, 2018

@Nisthar Just move the two vue file to your folder, like projectName/components/waterfall.vue :)

Why not work before:

webpack build vue to min.js, webpack did insert '<style>' to document.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants