简体   繁体   中英

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.

Files structure:

在此处输入图像描述

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

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

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM