deno icon indicating copy to clipboard operation
deno copied to clipboard

undefined symbol: node_module_register

Open terrablue opened this issue 1 year ago • 1 comments

What version of Deno is running?

1.42.2

What platform is your computer?

Linux 6.8.9-arch1-1 x86_64 unknown

What steps can reproduce the bug?

  1. Put import gi from "node-gtk"; into a JS file app.js
  2. Run deno run --allow-all app.js

What is the expected behavior?

Deno should run without an error.

What do you see instead?

deno: symbol lookup error: /home/blue/test-native/node_modules/.deno/[email protected]/node_modules/node-gtk/lib/binding/node-v108-linux-x64/node_gtk.node: undefined symbol: node_module_register

terrablue avatar May 05 '24 13:05 terrablue

I'm also seeing this issue.

ralyodio avatar May 05 '24 19:05 ralyodio

node-gtk is using APIs which are not supported as part of the Node-API: https://nodejs.org/api/n-api.html#implications-of-abi-stability

devsnek avatar Jun 10 '24 15:06 devsnek

You could try your luck with this Deno port of GTK https://github.com/ahgilak/deno_gi

bricefriha avatar Sep 28 '24 10:09 bricefriha