I've encountered an issue while trying to import an image for CSS. I successfully imported the image and used it in the img tag as src={furnitureBG} for testing purposes.
Following the documentation, I imported the image and set the path as the value for url(''). However, the image does not display and no error message is shown.
I'm certain that the path is correct because when I use the following code:
<img src={furnitureBG} />
The desired image shows up. I'm just perplexed as to why it's not working with the CSS background in the code below:
import furnitureBG from '../images/furniture-bg-7.png';
const Container = styled.div`
height: 100vh;
width: 100vw;
background: linear-gradient(rgba(0,0,0,.35), rgba(0,0,0,.35)), url('../images/furniture-bg-7.png');
`