Images with map component are not displayed

Hello everyone I hope you are well

I’m making a custom nerdlet in which I use a map from a library called react-leaflet used in this new relic project

Well here comes my problem, this library requires using file-loader that has a configuration file something like:


The problem is that when I put any image in my nerdlet it doesn’t show something like:


What could be the problem? I appreciate your answers

After a while I found a solution:
in file “.extended-webpackrc.js” add exclude in rule something like this:

file-loader is neccesary for use react-leaflet, leaflet.

I hope my solution works for you.


@jgaona Thank you for sharing the solution you found! :slight_smile:

1 Like