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

window is not defined #277

Open
edardev opened this issue Oct 24, 2018 · 1 comment
Open

window is not defined #277

edardev opened this issue Oct 24, 2018 · 1 comment

Comments

@edardev
Copy link

edardev commented Oct 24, 2018

While using the Slideout package and building a SSR with Gatsby in production,
I get the following error;
WebpackError: ReferenceError: window is not defined

I guess, it is because the module require of window to be defined. In development works fine but while
using an Static Site Generator with Gatsby.js in production it will fails.

@d4rkr3pt0r
Copy link

d4rkr3pt0r commented Mar 9, 2019

@EAdeveloper You should disable SSR for this plugin inside nuxt.config.js file. here is how:

plugins: [
   //other plugins
    { src: '~/plugins/NonSSR-Plugins.js', ssr: false },
  ],

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