I run tiddlywiki in nodejs mode. In order to test the CM6 plugin “safely” I downloaded and imported the base module Code Mirror 6 Editor into a git branch. That simple move actually broke my overall installation.
First, I got the following error after restarting (and still being in the new branch):
Error executing boot module $:/plugins/tiddlywiki/codemirror/addon/hint/css-hint.js:
Cannot find module named '../../mode/css/css'
required by module '$:/plugins/tiddlywiki/codemirror/addon/hint/css-hint.js',
resolved to $:/plugins/tiddlywiki/codemirror/mode/css/css
on my Linux system, the allegedly missing module is installed at:
/usr/lib/node_modules/tiddlywiki/plugins/tiddlywiki/codemirror-mode-css/files/mode/css/css.js
Not wanting to mess with the problem, I quit tiddlywiki, deleted the branch, switched back to main and restarted it (I run TW as a systemctl service). Now the tiddlywiki won’t load, complaining that:
Error executing boot module $:/plugins/tiddlywiki/codemirror/addon/hint/css-hint.js:
Cannot find module named '../../mode/css/css' required by module
'$:/plugins/tiddlywiki/codemirror/addon/hint/css-hint.js',
resolved to $:/plugins/tiddlywiki/codemirror/mode/css/css
undefined
As noted above, I do have that module installed in the node js tree.
How could things get so wrong, and how can I get my TW back?