Skip to content
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

On Gnome 45, extension loading fails with "import declarations may only appear at top level of a module" #795

Open
kubrickfr opened this issue Aug 9, 2023 · 3 comments

Comments

@kubrickfr
Copy link

It used to work in Alpha but not in Beta any more. I guess it's because of the port of the extension system to ESM.

JS ERROR: Extension system-monitor@paradoxxx.zero.gmail.com: SyntaxError: import declarations may only appear at top level of a module @ resource:///org/gnome/shell/ui/modalDialog.js:3:0

@kubrickfr
Copy link
Author

Fixing it doesn't look too bad, there is a yet to be merged migration guide.

@darkdragon-001
Copy link

Here you find the official porting guide.

@medovina
Copy link

medovina commented Oct 7, 2023

Note that there is ongoing work on Gnome 45 compatibility in the system-monitor-next fork of this repo:

mgalgs#38

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants