i was started learning about styled components and next.js. I want import image to my background but i have problem with import. I watched a few tutorial and people dont have this problem where they projects looks like mine. i want import image like that
import front from "../img/front.jpeg"
I want try use this import file in my background-image
const HomeTop = styled.div`
height: 80%;
width: 100%;
background-image: url('${front}');`
and also i tried include this import to IMG
<img src={front} alt="" />
but in both way i have the same error
They are basic things and i lost too much time to find resolve. What is wrong?
