How do I troubleshoot if a file inside of a package cannot be found?
./node_modules/react-pdf-highlighter/node_modules/pdfjs-dist/web/pdf_viewer.css
Error: Module not found: Can't resolve 'images/loading-icon.gif'
I am trying to use the react-pdf-highlighter in a nextjs project.
I have tried adding file-loader for .gif in my webpack.
It seems like the issue is inside of the react-pdf-highlighter, since it is inside of its node_modules.
Of course I would like to know the reply to this specific problem, but even more: How do I approach this type of issue? Are there steps that can be taken to figure out how to solve this?