Closed aviramga closed 2 years ago
Hi,
I am using NextJS (react ssr) and tried to use your package. There is an issue when trying to use it as it uses the window object.
How can I make it work in SSR?
Thanks!
Hi, I had the same problem and i fixed with process.browser.
process.browser
polyfills.js
if (process.browser) { require('picturefill'); }
Best, Julian
Hi,
I am using NextJS (react ssr) and tried to use your package. There is an issue when trying to use it as it uses the window object.
How can I make it work in SSR?
Thanks!