Cannot get node and typescript sdk extensions working with the GNOME runtime

I’m trying use flatpak to build my GJS/Typescript application

I’m currently getting this error

Initializing build dir
error: Requested extension org.freedesktop.Sdk.Extension.node20/x86_64/master not installed
Error: Child process exited with code 1

My flatpak manifest:

{
    "id": "com.ezratweaver.AdwBluetooth",
    "runtime": "org.gnome.Platform",
    "runtime-version": "master",
    "sdk": "org.gnome.Sdk",
    "sdk-extensions": [
        "org.freedesktop.Sdk.Extension.node20",
        "org.freedesktop.Sdk.Extension.typescript"
    ],
    "tags": ["nightly"],
    "build-options": {
        "append-path": "/usr/lib/sdk/node20/bin:/usr/lib/sdk/typescript/bin"
    },
    "command": "com.ezratweaver.AdwBluetooth",
    "finish-args": [
        "--share=ipc",
        "--device=dri",
        "--socket=wayland",
        "--socket=fallback-x11",
        "--env=GJS_DISABLE_JIT=1"
    ],
    "cleanup": [
        "/include",
        "/lib/pkgconfig",
        "/man",
        "/share/doc",
        "/share/gtk-doc",
        "/share/man",
        "/share/pkgconfig",
        "*.la",
        "*.a"
    ],
    "modules": [
        {
            "name": "adw-bluetooth",
            "buildsystem": "meson",
            "sources": [
                {
                    "type": "git",
                    "url": ".",
                    "branch": "HEAD"
                }
            ]
        }
    ]
}

I’m going off the typescript example AND what Decibels is currently using to package their flatpak, so I am a bit confused on why it isn’t working, any help would be appreciated :smiley:

You need to install the SDK extension first:

flatpak install org.freedesktop.Sdk.Extension.node20//25.08
1 Like

Ahhh I see, I was trying to install 24.08… Where can I go to find the version of node that corresponds with the gnome runtime?

When you use master, it’s the latest one. For stable versions, the only way I can think of is to look at GitLab. Here at the top of the file is the base version written, just switch to the tag, for which you want to find it: elements/freedesktop-sdk.bst · master · GNOME / gnome-build-meta · GitLab Also you can just open your project in GNOME Builder and it will automatically show a dialog with a list of all things to install.