electricitymaps / electricitymaps-contrib

A real-time visualisation of the CO2 emissions of electricity consumption
https://app.electricitymaps.com
GNU Affero General Public License v3.0
3.51k stars 934 forks source link

Error message: TypeError: error loading dynamically imported module: https://app.electricitymaps.com/assets/MapWrapper-50dce7e7.js #6022

Open shane-kerr opened 11 months ago

shane-kerr commented 11 months ago

Describe the bug

Web page reports an error.

To Reproduce Steps to reproduce the behavior:

  1. Go to 'https://app.electricitymaps.com/zone/NL'
  2. Change to another tab
  3. Change back to tab with electricitymaps
  4. See error

Oh no, something went wrong...

Please let us know on Github so we can fix this

Error message: TypeError: error loading dynamically imported module: https://app.electricitymaps.com/assets/MapWrapper-50dce7e7.js Url: https://app.electricitymaps.com/zone/NL

Expected behavior A lovely view of the shameful carbon output of the Netherlands.

Screenshots image

Desktop (if relevant):

Additional context The tab was not viewed for a few hours. I have seen this error before, but only now felt guilty enough to report it as requested.

shane-kerr commented 11 months ago

This error is not trivially reproducible. I love the electricity maps and keep them open almost all the time, and only have seen this error a few times over the past several weeks.

VIKTORVAV99 commented 11 months ago

Just wanted to let you know we haven't forgotten about this!

We are working a bit around the modules and code that is part of this so we will monitor the situation after those parts have been merged.

shane-kerr commented 4 months ago

I just got a similar error:

Error message: TypeError: error loading dynamically imported module: https://app.electricitymaps.com/assets/ZoneDetails-3c3c20cf.js Url: https://app.electricitymaps.com/zone/NL

So it's still an issue. :smile:

VIKTORVAV99 commented 4 months ago

It seems to be an issue that more or less only happens when we push an update with new assets and we have a plan that will hopefully fix it.