Error: resolve-url-loader: Error processing CSS, expecting 'base' to be an absolute path to a valid directory
P粉005105443
P粉005105443 2024-02-17 14:18:56
0
1
318

I'm trying to set a background image on my React app.

When I try to import an image using React and style it in JSX, it works, but when I try to put it directly into scss, it shows this error.

This is the CSS:

This is the error I get:

P粉005105443
P粉005105443

reply all(1)
P粉276577460

url encoding in sass will convert your spaces to " " which does not exist in the real url. So spaces don't work in scss. I think this was a mistake. You can use "-" instead of a space in the word "Home".

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template