NodeGUI Library Support?

Hi there! First time in the forums.

I am trying to develop a NodeGUI application on replit.com but every time I try to run the code I keep running into an annoying roadblock.
There seems to be libraries missing in the repl itself that the library ‘@nodegui/nodegui’ requires to run, specifically for ‘qode’ to run.

Sample code below that I am trying to run: (this is the barebones of it)

const { QMainWindow } = require('@nodegui/nodegui');

const win = new QMainWindow();

win.show();
global.win;

So far all I have managed to get is a missing library error for the aforementioned ‘qode’ command to run the code above since node itself cannot run the code.
The error I keep getting in console:

/home/runner/NodeGUI-Test-Application/node_modules/@nodegui/qode/binaries/qode: error while loading shared libraries: libglib-2.0.so.0: cannot open shared object file: No such file or directory

Hopefully someone higher up can perhaps figure this out and with luck can get this working.

1 Like

try after adding the library via Nix: in shell:

sed -i 's/];/  pkgs.glib\n  &/' replit.nix
3 Likes

Nope, still getting the same error message as before.
Unsure where it is looking for the shared library “libglib-2.0.so.0”.
Though I am suspecting the qode binary file in the @nodegui/qode module included with @nodegui/nodegui is likely not able to see the nixos packages.

There is no such a file
Add a file to it