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

Does not work with Nuxt #1

Open
jpt opened this issue May 28, 2018 · 1 comment
Open

Does not work with Nuxt #1

jpt opened this issue May 28, 2018 · 1 comment

Comments

@jpt
Copy link

jpt commented May 28, 2018

I'm getting a Nuxt generic server error when I use

import FlatSurfaceShader from 'vue-flat-surface-shader'

Is it not possible to use with server-side rendering?

@lu40
Copy link

lu40 commented Dec 11, 2018

A little late but maybe it helps someone:

You can use vue-flat-surface-shader as a client-side only plugin. The only thing you then need to do is wrap the component inside a no-ssr tag:

<no-ssr>
  <flat-surface-shader ... />

  <!-- and optionally define a placeholder component to display when serving ssr content -->
  <your-placeholder-component slot="placeholder" />
<no-ssr>

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

2 participants