mini-css-extract-plugin/dist/loader.js module build failed code example

Example: module build failed (from ./node_modules/mini-css-extract-plugin/dist/loader.js):

This issue happens because of webpack resolve.alias not works
To solve this issue we can use the asolute path.

In my case

Currently, I am in Projects\B\src\help\css

and requiring file from node_Modules
/Project/A/src/typography/css/qx-typography.css

so my path be like (**Absolute Path**)
../../../../node_modules/Project/A/src/typography/css/qx-typography.css";

Tags:

Misc Example