0

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:

enter image description here

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

2
  • 1
    Where styles.scss is located? Commented Nov 24, 2022 at 15:23
  • 1
    @yousoumar, on the same level as src. Commented Nov 24, 2022 at 15:40

1 Answer 1

1

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

@import "./app/styles/custom/loader.scss"; 
Sign up to request clarification or add additional context in comments.

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.