Skip to content

Error: import declarations may only appear at top level of a module #280

@Francewhoa

Description

@Francewhoa

Intro

I created this ticket to facilitate communications about pull request #270. I'm assuming that it is easier to resolve a challenge if there is one challenge per ticket.

Steps to reproduce error

  1. Replaced only the file thumbnailsBox.js with commit cb29bcc for gnome-shell-wsmatrix version 38

  2. Using Extension Manager, try activating gnome-shell-wsmatrix version 38 with commit cb29bcc This video shows this step at https://vk.com/video-225763421_456239018

  3. The first challenge is that the extension can't be activated. The number 1 in this screenshot below shows this first challenge.
    Screenshot-342

  4. The second challenge is when trying to activate the extension, this error message is display within Extension Manager import declarations may only appear at top level of a module. The number 2 in this screenshot above shows error message. This video shows this error at https://vk.com/video-225763421_456239018

  5. The needed end result is that users are able to activate the extension without error message. So that this other related challenge is potentitally resolved about Dragging a window to 2nd row or more fails in Overview #274


Used

• gnome-shell-wsmatrix 38 with commit cb29bcc
• Debian 12 Bookworm 64 bits
• GNOME 43.9
Extension Manager 0.4.3
• Wayland


What I tried that did not work

  • Deactivated all GNOME extensions. Except gnome-shell-wsmatrix 38 with commit cb29bcc

  • Fresh GNOME session

  • Restart device

  • Used gnome-shell-wsmatrix 38, replaced only the file thumbnailsBox.js with commit cb29bcc

  • Replaced all files and all folders of gnome-shell-wsmatrix 38. Which included patched file thumbnailsBox.js.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions