I am trying to change map view from streets to satellite view using react map gl library components but getting console errors of compiler not able to find source for corresponding layers. I have used by default Source and layer component of this library which works fine on initial page load but doesn't seems to work on changing map style. Moreover the layers are displayed fine on the map even after compiler generating console errors for same.
Can someone help me to diagnose the reason behind it and resolve it out completely.


