-
Notifications
You must be signed in to change notification settings - Fork 43
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
ReferenceError: document is not defined #19
Comments
Hey @Katarzina Mh yeah I guess this is a common thing for plugins that are working only in the browser. There are some guides in the nuxt.js docs on how to disable ssr for certain plugins.
I guess that the localStorage stuff is making some trouble here. |
thank you...your advice has helped |
I've just run into this exact issue. @Katarzina please, can you let me know how you resolved this? |
Fixed in nuxt by wrapping in |
…) using SSR tag. info here: apertureless/vue-cookie-law#19 indifisher commented on 23 Apr
Or event better with vue-client-only Sorry got instantly fed up with nuxt's too much magic(TM) |
vue & vue-cookie-law version
2.0.x, x.y.z
Reproduction Link
Steps to reproduce
What is Expected?
What is actually happening?
nuxt
<template>
<footer>
<div class="wrapper dark-gray
no-padding">`I'v got:
Nuxt.js Error:
ReferenceError: document is not defined
at addStyle (/var/www/vue/node_modules/vue-cookie-law/dist/vue-cookie-law.js:579:22)
The text was updated successfully, but these errors were encountered: