You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a React SSR that uses Webpack on the client and server. After updating to postcss-loader v2.0.3, my generated CSS Module hash's are different on the client and the server.
I am unsure if the issue is related to postcss-loader directly or if it is a new/updated dependency brought in by v2.0.3.
I can bring up a skeleton repository if that would help to demonstrate the issue I am having.
@chrisblossom Yep please provide a small repo, are you using sourcemaps in postcss-loader ?
Note that we are in the transition phase to move CSS Modules from css-loader into postcss-loader via a compatible PostCSS Plugin in the future
Activity
michael-ciniawsky commentedon May 9, 2017
@chrisblossom Yep please provide a small repo, are you using sourcemaps in
postcss-loader?Note that we are in the transition phase to move CSS Modules from
css-loaderintopostcss-loadervia a compatible PostCSS Plugin in the future[-]Universal css modules mismatch[/-][+][2.0.3] CSS Modules hash mismatch (React SSR)[/+][-][2.0.3] CSS Modules hash mismatch (React SSR)[/-][+][2.0.5] CSS Modules hash mismatch (React SSR)[/+]chrisblossom commentedon May 17, 2017
During the process of gutting my app to give an example repository, I found the following in my server webpack config:
After removing that, everything works as expected. Thanks for the quick reply!
theasia-Ashish commentedon May 22, 2017
@chrisblossom your comment save my life, after struggling this checksum warning nearly a month.