-
-
Notifications
You must be signed in to change notification settings - Fork 470
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
v1.1.0 broke ant-design style loading #445
Comments
I'm running into similar visual changes when updating from 1.0.2 to 1.1.0 |
Looks like about.react.js: Only one of |
it`s looks like cached style by id in https://github.com/webpack-contrib/style-loader/blob/master/src/runtime/injectStylesIntoStyleTag.js#L61, at the same id with different content will be overwritten |
This is the PR responsible: #443 |
After some investigation, I found that > loaderUtils.stringifyRequest(this, '!!/Users/yangshun/Developer/style-loader/node_modules/css-loader/dist/cjs.js??ref--5-1!/Users/yangshun/Developer/style-loader/test/manual/src/bar/style.module.css')
!!../../../../node_modules/css-loader/dist/cjs.js??ref--5-1!./style.module.css > loaderUtils.stringifyRequest(this, '!!/Users/yangshun/Developer/style-loader/node_modules/css-loader/dist/cjs.js??ref--5-1!/Users/yangshun/Developer/style-loader/test/manual/src/foo/style.module.css')
!!../../../../node_modules/css-loader/dist/cjs.js??ref--5-1!./style.module.css The ID produced is the same, for two different CSS module files. |
WIP on this |
I am very tired, don't sleep 3 days and my depression kills me, if somebody want to investigate and fix it, feel free to send a PR, i will do it tomorrow, i can't do it today, sorry guys |
We appreciate your efforts in maintaining and pushing the webpack ecosystem to greater heights. Please take care! |
same issue here. |
new version style-loader 1.1.1 will lose to load less css module same issue here. but version 1.0.2 works |
I can confirm this issue prevents relative import of css files to load into DOM, this id used in
Noticed that the last segment is |
Also for DraftJs Editor Plugin css imports, the situation is same. |
Today i am working on the problem, sorry for delay |
Done https://github.com/webpack-contrib/style-loader/releases/tag/v1.1.2, please leave feedback, it is big refactoring so sometimes bugs happen |
thanks for taking a look! |
Thank you! |
Expected Behavior
ant-design
styles show up as normal.Actual Behavior
some styles do not get loaded.
Code
https://gist.github.com/davidlougheed/4d97bf9107a13dfb84c0f492624783e1
Project: https://github.com/c3g/chord_web
How Do We Reproduce?
style-loader
1.1.xnpm run watch
Before screenshot: http://dlougheed.com/Screenshot%20from%202019-12-20%2015-02-32.png
After screenshot: http://dlougheed.com/Screenshot%20from%202019-12-20%2015-05-21.png
The text was updated successfully, but these errors were encountered: