-
Notifications
You must be signed in to change notification settings - Fork 48
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
webpack-isomorphic-tools/plugin ReferenceError: window is not defined #155
Comments
For some reason it's loading |
@hrasekh Did you solve this problem? |
@skywickenden No, I still get the error, and I could not figure it out what's the problem |
Are you using |
In Webpack config:
In font Awesome config
In Bootstrap Config:
|
I've just solved that error by using isomorphic-style-loader instead of style-loader. Still working on other errors though, so not sure if it is a complete solution |
@hrasekh Don't know, your ExtractTextPlugin config looks ok. |
@skywickenden perhaps... |
Updated the readme:
|
I'm working on one of those legacy projects. Just trying to update some packages, but is turning into a bit of Gordian knot. next.js looks good, but it would take a couple of months to refactor the whole project to use it! I'll just have to keep plugging away at the errors. |
Yes, I’d go the same route: dealt with a lot of legacy projects myself and
I know the drill.
…On Wed, 7 Feb 2018 at 14:52, Sky Wickenden ***@***.***> wrote:
I'm working on one of those legacy projects. Just trying to update some
packages, but is turning into a bit of Gordian knot.
next.js looks good, but it would take a couple of months to refactor the
whole project to use it! I'll just have to keep plugging away at the errors.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#155 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAdH775WIGRtqJExpxmnSR7wtd-lXVACks5tSY6TgaJpZM4RLbx->
.
|
When I Run
webpack --verbose --colors --display-error-details --config webpack/prod.config.js
I Get the following error:
[webpack-isomorphic-tools/plugin] [error] ReferenceError: window is not defined
at !../../../node_modules/style-loader/addStyles.js.webpack-module:20:3
at !../../../node_modules/style-loader/addStyles.js.webpack-module:10:47
at module.exports (!../../../node_modules/style-loader/addStyles.js.webpack-module:48:68)
at Object. (/home/user/
/style-loader!.//css-loader!./~/less-loader!./src/components/MainStyle/MainStyle.scss.webpack-module:8:73)The text was updated successfully, but these errors were encountered: