I am facing an issue while trying to display an image from my image folder in a React project using Webpack. I have observed that smaller photos with physically smaller dimensions and file sizes load properly, but larger photos do not render on the screen, showing only a placeholder instead. You can view the placeholder here.
My suspicion is that the problem lies within the Webpack configuration. The import and rendering of photos work for smaller images, indicating that the issue might be related to the "file-loader" clause in Webpack.
Provided below is my current Webpack setup:
webpack configuration code here...
In case it helps, here is how I am attempting to render the image in React:
React component code to render image here...
Interestingly, when rendered in the browser, the image appears as "24d565c81ae689a281aabb01ad3208db.jpg" instead of its original name "sample_photo.jpg".