79715871

Date: 2025-07-26 17:34:11
Score: 2
Natty:
Report link

Now you can access logo because it is a static file which is rendered in HTML (img tag- browser resolves /logo.png to the root). It doesn't need any fetching or parsing but when it comes to react-simple-maps while accessing /topo.json the fetch() fails so it displays an unexpected error, to avoid this try using absolute url ex geography = { new URL('/topo.json', window.location.origin).toString() }, this ensures fetch always reach the path.

Reasons:
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: bhavana