nukeop / react-ui-cards

Ready to use card components for React (rewritten in Typescript)
https://nukeop.github.io/react-ui-cards/
MIT License
237 stars 62 forks source link

Gives Error: ReferenceError: window is not defined at (..../node_modules/react-ui-cards/bundle.js:27:5640) #25

Closed jermsam closed 2 years ago

jermsam commented 4 years ago

Looks like it has no support for Server Side Rendering. When used in a Next.js project, it gives the highlighted error. Is this something you can fix?

nukeop commented 4 years ago

Hm, I didn't think about server side rendering when creating this, so it might not be easy to fix. Maybe it needs a webpack config tweak.

ignacioaraya1995 commented 2 years ago

How can we solve it?

nukeop commented 2 years ago

Not sure if it still occurs, I've rewritten everything from scratch since then.