Follow

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use
Contact

Error: Module build failed (from ./node_modules/sass-loader/dist/cjs.js)

In the folder app, I created a folder styles > custom > loader.scss. Then, in the styles.scss file, I add this import:

@import "styles/custom/loader.scss";

The problem is that I have an error message:

./src/styles.scss - Error: Module build failed (from ./node_modules/sass-loader/dist/cjs.js):

@import "styles/custom/loader.scss";

I don’t know how can I solve this problem, please.

MEDevel.com: Open-source for Healthcare and Education

Collecting and validating open-source software for healthcare, education, enterprise, development, medical imaging, medical records, and digital pathology.

Visit Medevel

Files structure:

enter image description here

I don’t know how can I solve this problem please?

>Solution :

You are using an incorrect path based on how your files are structured. Try doing so instead:

@import "./app/styles/custom/loader.scss";
Add a comment

Leave a Reply

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use

Discover more from Dev solutions

Subscribe now to keep reading and get access to the full archive.

Continue reading