Closed idangozlan closed 7 years ago
Well, apparently, style-loader/lib/addStyles.js
uses window
variable which breaks Node.js.
You could check that out by looking at the file.
Thanks! Do you have any clue if it's something new or you bumped into that on past?
No one reported that before you so maybe it's a new style-loader
release or maybe something else
I have the same issue. Can you double check? Style-loader only supposes to work on the client side, since it is trying to insert a style tag into the DOM. We setup correctly with webpack for style-loader as a fallback, still, whenever we run build, it gets an error.
Well, the cause of the issue is the same: style-loader
seems to use window
variable in your case which is normal considering it adds styles to the <head/>
.
Only two people had this issue so far.
You could create a simple example project illustrating the issue along with the instructions for reproducing it and then I could have a look.
Hi, when im trying to import css from node module, im getting the following error:
any suggestions?