zhrexl / DrawOnYourScreen2

GNU General Public License v3.0
241 stars 29 forks source link

SyntaxError: import declarations may only appear at top level of a module #71

Open cselmo opened 2 months ago

cselmo commented 2 months ago

I have this error when trying to install the extension:

The settings of extension draw-on-your-screen2@zhrexl.github.com had an error:

SyntaxError: import declarations may only appear at top level of a module

Stack trace:

_init@resource:///org/gnome/Shell/Extensions/js/extensionPrefsDialog.js:23:33
ExtensionPrefsDialog@resource:///org/gnome/Shell/Extensions/js/extensionPrefsDialog.js:10:4
OpenExtensionPrefsAsync/<@resource:///org/gnome/Shell/Extensions/js/extensionsService.js:129:33
asyncCallback@resource:///org/gnome/gjs/modules/core/overrides/Gio.js:115:22
run@resource:///org/gnome/Shell/Extensions/js/dbusService.js:186:20
main@resource:///org/gnome/Shell/Extensions/js/main.js:22:13
run@resource:///org/gnome/gjs/modules/script/package.js:206:19
start@resource:///org/gnome/gjs/modules/script/package.js:190:8
@/usr/share/gnome-shell/org.gnome.Shell.Extensions:1:17

Please help!

Carlos

saibermehmet commented 2 months ago

I am having the same issue even if I follow the installation instructions.

djtuBIG-MaliceX commented 2 months ago

Also getting the same error on Ubuntu 22.04.4 LTS after a recent update.

image

❯ gnome-shell --version
GNOME Shell 42.9
djtuBIG-MaliceX commented 2 months ago

OK it looks like you need to add the next step after git clone:

git checkout GNOMEv42

Everything else should be OK. Note you may need to use sudo systemctl restart gdm-service as Alt+F2 r doesn't work anymore.

Although reporting back, seems like it's still disabled from enabling...? image