@shivaprakash-sudo
Posted
Hello Sindhuja,
The issue would most probably be related to the path of the image you're providing in the HTML. We have to provide relative paths to the image src
attribute, for example, let's consider a project structure as follows.
QR code component
images
qr-image.png
index.html
styles.css
In this case, the image src
inside your HTML should have something like ./images/qr-image.png
, where one .
represents that we're searching something inside the root folder, which in our case is the images
folder and inside that we're taking the image.
I used to have this problem too, but after some researching the above solution was what I found to be helpful. I hope it solves your problem, please let me know if it doesn't.
Also, the GitHub repository link doesn't seem to work, can you please provide a link to your source code?
Marked as helpful
@SindhujaBandaru
Posted
@shivaprakash-sudo Thankyou shivaprakash-sudo, Now i fixed the problem.The link to github repository is https://github.com/SindhujaBandaru/Qr-code-component.git