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

Crash on Server Side Rendering #25

Open
fif1973 opened this issue Jul 31, 2020 · 2 comments
Open

Crash on Server Side Rendering #25

fif1973 opened this issue Jul 31, 2020 · 2 comments

Comments

@fif1973
Copy link

fif1973 commented Jul 31, 2020

import fullscreen from 'vue-fullscreen'
Vue.use(fullscreen)
ReferenceError: document is not defined
    at r (/var/www/html/node_modules/vue-fullscreen/dist/vue-fullscreen.min.js:1:772)
    at Object.<anonymous> (/var/www/html/node_modules/vue-fullscreen/dist/vue-fullscreen.min.js:1:3418)
    at t (/var/www/html/node_modules/vue-fullscreen/dist/vue-fullscreen.min.js:1:330)
    at Object.<anonymous> (/var/www/html/node_modules/vue-fullscreen/dist/vue-fullscreen.min.js:1:3642)
    at t (/var/www/html/node_modules/vue-fullscreen/dist/vue-fullscreen.min.js:1:330)
    at /var/www/html/node_modules/vue-fullscreen/dist/vue-fullscreen.min.js:1:713
    at /var/www/html/node_modules/vue-fullscreen/dist/vue-fullscreen.min.js:1:722
    at /var/www/html/node_modules/vue-fullscreen/dist/vue-fullscreen.min.js:1:81
    at Object.<anonymous> (/var/www/html/node_modules/vue-fullscreen/dist/vue-fullscreen.min.js:1:207)
    at Module._compile (internal/modules/cjs/loader.js:1133:30)
@fif1973
Copy link
Author

fif1973 commented Jul 31, 2020

i don't use Nuxt

@mirari
Copy link
Owner

mirari commented Jul 31, 2020

Try to excute Vue.use(fullscreen) after the client is loaded.

I'll try to make a code change to support SSR later.

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