saberland/saber



The issue has been closed
'Window is not defined' where to place client-side only scripts? #466
ohiosveryown posted onGitHub
I'm trying to use a third-party plugin (flickity) but I'm getting an error when the app tries to build: window is not defined
. I initialized the plugin on the mount lifecycle fwiw.
I'm guessing this is because saber/vue is trying to run the plugin while rendering to the page on the server.
Any thoughts?