I made a simple async Extension which periodically count Arch Linux's updates and shows them on the panel.
The extension works fine IF it's enabled with Gnome Shell already running. In any other case (starting Gnome Shell with the extension pre-enabled), it breaks the desktop and goes back to GDM.
My code can be found at: https://github.com/speltriao/Pacman-Update-for-GNOME-Shell/blob/main/pacmancounter@example.com/extension.js
Maybe there is something wrong with the async function? Got the idea from https://www.andyholmes.ca/articles/asynchronous-programming-in-gjs.html
Thanks.