coopcycle / coopcycle-web

Logistics & marketplace platform. Only for worker-owned business.
https://coopcycle.org
Other
571 stars 130 forks source link

Conflicting order warning in Webpack #1052

Open alexsegura opened 4 years ago

alexsegura commented 4 years ago

We have this warning in Webpack

WARNING  Compiled with 5 warnings
 warning  
chunk vendors~dashboard~delivery-form~foodtech-dashboard~restaurant-planning~widgets~widgets-admin [mini-css-extract-plugin]
Conflicting order between:
 * css ./node_modules/css-loader/dist/cjs.js??ref--9-oneOf-1-1!./node_modules/postcss-loader/src??ref--9-oneOf-1-2!./node_modules/less-loader/dist/cjs.js??ref--9-oneOf-1-3!./node_modules/antd/lib/date-picker/style/index.less
 * css ./node_modules/css-loader/dist/cjs.js??ref--9-oneOf-1-1!./node_modules/postcss-loader/src??ref--9-oneOf-1-2!./node_modules/less-loader/dist/cjs.js??ref--9-oneOf-1-3!./node_modules/antd/lib/button/style/index.less
 * css ./node_modules/css-loader/dist/cjs.js??ref--9-oneOf-1-1!./node_modules/postcss-loader/src??ref--9-oneOf-1-2!./node_modules/less-loader/dist/cjs.js??ref--9-oneOf-1-3!./node_modules/antd/lib/time-picker/style/index.less
 warning  
chunk vendors~dashboard~delivery-form~foodtech-dashboard~restaurant-planning~widgets~widgets-admin [mini-css-extract-plugin]
Conflicting order between:
 * css ./node_modules/css-loader/dist/cjs.js??ref--9-oneOf-1-1!./node_modules/postcss-loader/src??ref--9-oneOf-1-2!./node_modules/less-loader/dist/cjs.js??ref--9-oneOf-1-3!./node_modules/antd/lib/input/style/index.less
 * css ./node_modules/css-loader/dist/cjs.js??ref--9-oneOf-1-1!./node_modules/postcss-loader/src??ref--9-oneOf-1-2!./node_modules/less-loader/dist/cjs.js??ref--9-oneOf-1-3!./node_modules/antd/lib/button/style/index.less
 * css ./node_modules/css-loader/dist/cjs.js??ref--9-oneOf-1-1!./node_modules/postcss-loader/src??ref--9-oneOf-1-2!./node_modules/less-loader/dist/cjs.js??ref--9-oneOf-1-3!./node_modules/antd/lib/time-picker/style/index.less
 warning  
chunk vendors~dashboard~delivery-form~foodtech-dashboard~restaurant-planning~widgets~widgets-admin [mini-css-extract-plugin]
Conflicting order between:
 * css ./node_modules/css-loader/dist/cjs.js??ref--9-oneOf-1-1!./node_modules/postcss-loader/src??ref--9-oneOf-1-2!./node_modules/less-loader/dist/cjs.js??ref--9-oneOf-1-3!./node_modules/antd/lib/button/style/index.less
 * css ./node_modules/css-loader/dist/cjs.js??ref--9-oneOf-1-1!./node_modules/postcss-loader/src??ref--9-oneOf-1-2!./node_modules/less-loader/dist/cjs.js??ref--9-oneOf-1-3!./node_modules/antd/lib/time-picker/style/index.less
 warning  
chunk vendors~dashboard~foodtech-dashboard [mini-css-extract-plugin]
Conflicting order between:
 * css ./node_modules/css-loader/dist/cjs.js??ref--9-oneOf-1-1!./node_modules/postcss-loader/src??ref--9-oneOf-1-2!./node_modules/less-loader/dist/cjs.js??ref--9-oneOf-1-3!./node_modules/antd/lib/slider/style/index.less
 * css ./node_modules/css-loader/dist/cjs.js??ref--9-oneOf-1-1!./node_modules/postcss-loader/src??ref--9-oneOf-1-2!./node_modules/less-loader/dist/cjs.js??ref--9-oneOf-1-3!./node_modules/antd/lib/timeline/style/index.less
 warning  
chunk vendors~dashboard~foodtech-dashboard [mini-css-extract-plugin]
Conflicting order between:
 * css ./node_modules/css-loader/dist/cjs.js??ref--9-oneOf-1-1!./node_modules/postcss-loader/src??ref--9-oneOf-1-2!./node_modules/less-loader/dist/cjs.js??ref--9-oneOf-1-3!./node_modules/antd/lib/timeline/style/index.less
 * css ./node_modules/css-loader/dist/cjs.js??ref--9-oneOf-1-1!./node_modules/postcss-loader/src??ref--9-oneOf-1-2!./node_modules/less-loader/dist/cjs.js??ref--9-oneOf-1-3!./node_modules/antd/lib/tooltip/style/index.less
Paul-Eraman-CoopCycle commented 1 year ago

@alexsegura what does this mean?

vladimir-8 commented 8 months ago

Found this article: https://laysent.com/til/2019-11-28_conflicting-order-in-mini-css-extract-plugin

And tried to resolve some of these warnings in

https://github.com/coopcycle/coopcycle-web/pull/4103/commits/2125d779d8afa920c43a8a2bfbaa739be9df5bab

https://github.com/coopcycle/coopcycle-web/pull/4103/commits/3c7f02a30e9a89a61f51a2138cf64cf41454e8fa

https://github.com/coopcycle/coopcycle-web/pull/4103/commits/61ca55e5352671a0e68f36e9f19eeae0dde71eb6