smpl, (edited )
@smpl@discuss.tchncs.de avatar

GNOME Shell 45 moved to ESM (ECMAScript modules). That means you MUST use the standard import declaration instead of relying on the previous imports.* approach.

gjs.guide/extensions/…/gnome-shell-45.html

So the imports in your extensions is changed from:


<span style="color:#323232;">const Clutter = imports.gi.Clutter;
</span><span style="color:#323232;">const Gio = imports.gi.Gio;
</span><span style="color:#323232;">const Main = imports.ui.main;
</span><span style="color:#323232;">const Volume = imports.ui.status.volume;
</span>

to


<span style="color:#323232;">import Clutter from 'gi://Clutter';
</span><span style="color:#323232;">import Gio from 'gi://Gio';
</span><span style="color:#323232;">import * as Main from 'resource:///org/gnome/shell/ui/main.js'
</span><span style="color:#323232;">import * as Volume from 'resource:///org/gnome/shell/ui/status/volume.js';
</span>
  • All
  • Subscribed
  • Moderated
  • Favorites
  • linux@lemmy.ml
  • localhost
  • All magazines
  • Loading…
    Loading the web debug toolbar…
    Attempt #