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

[1.3.2] Usage with Nuxt / document is not defined #31

Open
zsavajji opened this issue May 14, 2018 · 6 comments
Open

[1.3.2] Usage with Nuxt / document is not defined #31

zsavajji opened this issue May 14, 2018 · 6 comments

Comments

@zsavajji
Copy link

zsavajji commented May 14, 2018

Hi,
i've been using vue-popper with nuxt for a while with success, but this morning i upgraded the dependencies of my project, and updated to 1.3.2 from 1.3.0, and suddenly this error appears when rendering from the server.

ReferenceError: document is not defined at __vue_create_injector__ (/node_modules/vue-popperjs/dist/js/vue-popper.js:354:16)

Is this a bug or there's some new configuration for SSR which i'm missing out?

Thanks in advance

@RobinCK
Copy link
Owner

RobinCK commented May 14, 2018

Hi @zsavajji
I think problem in rollup-plugin-vue
I downgrade plugin
Please check 1.3.3 version

@RobinCK RobinCK closed this as completed May 19, 2018
@zsavajji
Copy link
Author

Yes, sorry, never got back to you, 1.3.3 is working as expected!

@ayvanov
Copy link

ayvanov commented Oct 2, 2018

Hi @RobinCK
Same error appears since version 1.4.1

@shlima
Copy link

shlima commented Dec 29, 2018

+1

@shlima
Copy link

shlima commented Dec 29, 2018

I can confirm, that using raw version from /src/component/popler.js.vue works perfect with SSR. @RobinCK could you please fix the issue ?

@shlima
Copy link

shlima commented Feb 27, 2019

@RobinCK if you add the following line to webpack config:

globalObject: 'typeof self !== \'undefined\' ? self : this'

You package will be working in SSR mode, please see webpack/webpack#6784 (comment)

Could you please fix the issue?

@RobinCK RobinCK reopened this Feb 28, 2019
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

4 participants