I'm not able to import modules under js/ui because gjs is not able to
find other modules.
Do I need to add another include path? I'm running on Ubuntu 11.10.
Thanks,
Chris
$ gjs-console -I /usr/share/gnome-shell/js -c "const Main = imports.ui.main;"
JS ERROR: !!! Exception was: Error: Requiring Meta, version none:
Typelib file for namespace 'Meta' (any version) not found
JS ERROR: !!! lineNumber = '0'
JS ERROR: !!! fileName = '"gjs_throw"'
JS ERROR: !!! stack = '"("Requiring Meta, version none: Typelib
file for namespace 'Meta' (any version) not found")@gjs_throw:0
@/usr/share/gnome-shell/js/ui/main.js:11
"'
JS ERROR: !!! message = '"Requiring Meta, version none: Typelib
file for namespace 'Meta' (any version) not found"'
JS ERROR: !!! Exception was: Error: Requiring Meta, version none:
Typelib file for namespace 'Meta' (any version) not found
JS ERROR: !!! lineNumber = '0'
JS ERROR: !!! fileName = '"gjs_throw"'
JS ERROR: !!! stack = '"("Requiring Meta, version none: Typelib
file for namespace 'Meta' (any version) not found")@gjs_throw:0
@/usr/share/gnome-shell/js/ui/main.js:11
"'
JS ERROR: !!! message = '"Requiring Meta, version none: Typelib
file for namespace 'Meta' (any version) not found"'
Error: Requiring Meta, version none: Typelib file for namespace 'Meta'
(any version) not found
_______________________________________________
javascript-list mailing list
[email protected]
http://mail.gnome.org/mailman/listinfo/javascript-list