Hi everyone,
I'm trying to create a new tiddlywiki plugin (a syncadaptor for a postgres database). That plugin depends on the nodejs module pg (for database connections), so I've installed pg via npm. The package is located in a folder named node_modules in the top folder TiddlyWiki5. I can successfully build an index.html file, but whenever I load that file I get the following error message:
Error executing boot module $:/plugins/tiddlywiki/adapost/adapost.js: "Cannot find module named 'pg' required by module '$:/plugins/tiddlywiki/adapost/adapost.js', resolved to pg"
What do I have to do to include the npm module pg in my distribution of TiddlyWiki5? Is there an easy way to achive this? It seems like the module has quite a bunch of dependencies and several .js files included.
Thank for your suggestions!