-
Notifications
You must be signed in to change notification settings - Fork 166
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
SyntaxError: import declarations may only appear at top level of a module #416
Comments
cannot install it either |
What version of the extension do you have? |
How can I find the extension version? |
@ahadfarajpour did you install the extension through e.g.o? |
Yes, it is installed and it is the latest version |
I had the same issue when upgrading to fedora 39. |
@cesarFrias thank you for reporting. |
I did nothing and it came back to work! Like magic. Sorry for the noise |
Anyone who is experiencing this issue, could you please share the output of the following commands: $ gjs --version $ cat ~/.local/share/gnome-shell/extensions/clipboard-indicator@tudmotu.com/metadata.json And also please try restarting your computer (or at least logout of GNOME) and see if the issue persists? |
$ gjs --version
gjs 1.78.0
$ cat ~/.local/share/gnome-shell/extensions/clipboard-indicator@tudmotu.com/metadata.json
{
"_generated": "Generated by SweetTooth, do not edit",
"description": "Clipboard Manager extension for Gnome-Shell - Adds a clipboard indicator to the top panel, and caches clipboard history.",
"name": "Clipboard Indicator",
"shell-version": [
"42",
"43",
"44"
],
"url": "https://github.com/Tudmotu/gnome-shell-extension-clipboard-indicator",
"uuid": "clipboard-indicator@tudmotu.com",
"version": 47
} The extension used to work and this happened after defining a key in one of the settings. Not sure of causality though. |
tried to edit the code, logged out and it's working. Don't think it's related to me editing it though... |
Thanks @CrossedCarpet. I think the re-login is what solves it. From the I am closing this issue for now. If anyone still has issues after a restart / re-login, feel free to open. |
My trowel was also fixed by itself |
software information
ubuntu 23.10
64-bit
kernel linux 6.5.0-10-generic
GNOME Shell 45.0
Error
SyntaxError: import declarations may only appear at top level of a module
Stack trace:
@file:///home/lost/.local/share/gnome-shell/extensions/clipboard-indicator@tudmotu.com/prefs.js:5:19
_init/GLib.MainLoop.prototype.runAsync/</<@resource:///org/gnome/gjs/modules/core/overrides/GLib.js:266:34
The text was updated successfully, but these errors were encountered: