Gkt kotlinJs

I try to compile in kotlin js with using nodejs-gtk :

Blockquote
`fun main (){
js(""" gi = require(‘node-gtk’)
Gtk = gi.require(‘Gtk’, ‘3.0’)
gi.startLoop()
Gtk.init()
win = new Gtk.Window()
win.on(‘destroy’, function(){ Gtk.mainQuit() })
win.on(‘delete-event’, function(){ false })
win.setDefaultSize(200, 80)
win.add(new Gtk.Label({ label: ‘Hello Gtk+’ }))
win.showAll()
Gtk.main()""")
}

and return

Blockquote
Error: Cannot find module ‘/home/etienne/node_modules/node-gtk/lib/binding/node-v72-linux-x64/node_gtk.node’
Require stack:

  • /home/etienne/node_modules/node-gtk/lib/native.js
  • /home/etienne/node_modules/node-gtk/lib/index.js
  • /home/etienne/IdeaProjects/Nodejs/build/js/packages/Nodejs/kotlin/Nodejs.js
    at Function.Module._resolveFilename (internal/modules/cjs/loader.js:797:15)
    at Function.Module._load (internal/modules/cjs/loader.js:690:27)
    at Module.require (internal/modules/cjs/loader.js:852:19)
    at require (internal/modules/cjs/helpers.js:74:18)
    at Object. (/home/etienne/node_modules/node-gtk/lib/native.js:11:17)
    at Module._compile (internal/modules/cjs/loader.js:959:30)
    at Object.Module._extensions…js (internal/modules/cjs/loader.js:995:10)
    at Module.load (internal/modules/cjs/loader.js:815:32)
    at Function.Module._load (internal/modules/cjs/loader.js:727:14)
    at Module.require (internal/modules/cjs/loader.js:852:19)
    FAILURE: Build failed with an exception.