Adejoro Peter
Adejoro Peter

Reputation: 31

Trying to fix a module not found error in react

An error in REACT displaying a MODULE NOT FOUND ERROR

How this error started was, that I was trying to add a background image with a tailwind CSS and suddenly got this error and later commented on the code and still displaying the same error. tried all possible ways that I can think of still not working.. would like to hear from the community.

Upvotes: 0

Views: 73

Answers (1)

Varun Kaklia
Varun Kaklia

Reputation: 376

I think you put images in public folder of reactJs structure. If that is true then you wrongly call the image just use

<img src="./images/bg-card-front.png" alt="just an image">

Hope you like my answer, if you found any issue just lemme know.

Upvotes: 1

Related Questions