Mango / slideout

A touch slideout navigation menu for your mobile web apps.
https://slideout.js.org
MIT License
7.94k stars 1.15k forks source link

window is not defined #277

Open edardev opened 6 years ago

edardev commented 6 years ago

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 commented 5 years ago

@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 },
  ],