How to activate the Global Hooks

Hi, Nick,

I’ve done as you proposed and everything oft he examples (also with modifications) runs excellent.

But if I expand one of them for using sqlite3 module I’ll get errors.

First way : using „require(‚sqlite3‘)“ produces „cannot find module sqlite3“ (sqlite has been installed with npm with and without –g option)

Second way : configuring inside settings.js in the functionGlobalContext as

„sqlite3:require('sqlite3'),“ and using „var sqlite3=global.get('sqlite3');“ with the error „TypeError: global.get is not a function“.

I’ve also tried to activate „externalModules“ with „autoInstall: true“ and „modules: {allowInstall: true,} – no change at all.

Any idea where my mistake may be ?

Kind regards

Fred