'window is not defined' error when using style-loader with webpack
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 build there is an issue from Style-Loader. The issue is window is not defined webpack:///./node_modules/style-loader/lib/addStyles.js?:23 return window && document && document.all && !window.atob; Has anyone run into this issue? After looking through Stack and the Github issues for style-loader I am not finding any solution. Here is my webpack file: const path = require('path'); const webpack = require('webpack'); module.exports = {