I have created a reactjs
app which is inside the Loopback
folder.
I put a folder tree image below. as the picture inside the client_src
have react files.
I have used loopback-storage-component
to store images. Those images are stored into files folder.
Now, my problem is to get stored images from files folder. So that, I used
<Img
src={require("../../files/revenue_Licence_Copy/5.jpg")}
/>
while I run reactjs
App using npm start
into client_src
folder.
Then I got an error
Module not found: You attempted to import ../../files/revenue_Licence_Copy/5.jpg which falls outside of the project src/ directory. Relative imports outside of src/ are not supported. You can either move it inside src/, or add a symlink to it from project'snode_modules/.
How to solve my problem I refer below link enter link description here but that also not solve my problem..
Please anyone help me?