Building a server side react app and while using Webpack I am having issues with Style-Loader.
I am using version \"^0.23.1\" and when running a script to bundle and
I think your problem is, that there is no window
object when running js code on a node server. Which also makes sense, as your server has no window where your code is rendered. You can use the global
object for global references instead, see this related post here: Does node.js have equivalent to window object in browser