Language definition and SyntaxError errors during startup

Hi there,

I recently installed TiddlyWiki on a home server running Ubuntu 18.04.6 LTS (Bionic Beaver).
Version of tiddlywiki is 5.2.2
Version of node.js is 8.10.0

I used steps described at https://tiddlywiki.com/#Installing%20TiddlyWiki%20on%20Node.js, everything went ok.

But, when I start tiddlywiki, I get these messages:

$ tiddlywiki tiddlywiki.local --listen host=xx.xx.xx.xx
Language definition for 'python' could not be registered.
SyntaxError: Invalid regular expression: /[\p{XID_Start}_]\p{XID_Continue}*/: Invalid escape
    at e ($:/plugins/tiddlywiki/highlight/highlight.js:565:19)
    at Object.registerLanguage ($:/plugins/tiddlywiki/highlight/highlight.js:288:45)
    at $:/plugins/tiddlywiki/highlight/highlight.js:603:7
    at $:/plugins/tiddlywiki/highlight/highlight.js:603:37
    at ContextifyScript.Script.runInContext (vm.js:59:29)
    at ContextifyScript.Script.runInNewContext (vm.js:65:15)
    at Object.runInNewContext (vm.js:135:38)
    at Object.$tw.utils.evalSandboxed ($:/boot/boot.js:601:5)
    at Object.$tw.modules.execute ($:/boot/boot.js:879:15)
    at require ($:/boot/boot.js:826:24)
syncer-server-filesystem: Dispatching 'save' task: $:/StoryList 
Serving on http://xx.xx.xx.xx:8080
(press ctrl-C to exit)

Tiddlywiki server seems to runs fine, I can create and save tiddlers.
Are these errors harmful? How can I fix them?

Looks like a problem with the highlight plugin. Which is odd. What plugins do you have installed?

It seems the node version is to old. It doesn’t understand the regexp syntax. … Just a guess

Node 16.15.1 is the latest LTS node version. See: Node.js

Hi guys,

@Mark_S,

What plugins do you have installed?

I have no idea, it is just default installation of tiddlywiki, as per instruction.

@pmario,

It seems the node version is to old

Yes, I think it is the cause.

I tried to perform the same exact installation at OpenBSD 7.1 (node version v16.14.2) - no single warning so far.

I think it would be great to indicate the minimum required version of node.js needed to run the wiki.

Anyway, thank you for help!