Bug? Cannot find module named '../javascript/javascript

46 views
Skip to first unread message

TonyM

unread,
Sep 12, 2018, 8:36:36 PM9/12/18
to TiddlyWiki
Folks,

I now have a re-occurring fault, when I load a wiki and hope someone has a suggestion or debug path

I get an "Internal JavaScript Error" below the first tiddler on load

Well, this is embarrassing. It is recommended that you restart TiddlyWiki by refreshing your browser
Error executing boot module $:/plugins/tiddlywiki/codemirror/mode/htmlmixed/htmlmixed.js: "Cannot find module named '../javascript/javascript' required by module '$:/plugins/tiddlywiki/codemirror/mode/htmlmixed/htmlmixed.js', resolved to $:/plugins/tiddlywiki/codemirror/mode/javascript/javascript"


  • This does not exist $:/plugins/tiddlywiki/codemirror/mode/javascript/javascript
  • $:/plugins/tiddlywiki/codemirror/mode/htmlmixed/htmlmixed.js can only be found in the codemittor plugin $:/plugins/tiddlywiki/codemirror-mode-htmlmixed
  • Disabled $:/plugins/tiddlywiki/codemirror-mode-htmlmixed
Actually at the moment I cant scroll to the java script error below to read it.

Disabling the code mirror plugin has stopped it occurring (I also have most modules installed) but I need its features.

Thanks in advance for some suggestions
Tony 


PMario

unread,
Sep 13, 2018, 5:11:29 AM9/13/18
to TiddlyWiki
Hi Tony,

You also need to install the javascript highlighter module, if you want to use htmlmixed mode for CM

-m

PMario

unread,
Sep 13, 2018, 5:14:04 AM9/13/18
to TiddlyWiki
hi,
The codemirror plugins don't have automatic dependency resolution. So you'll need to test a little bit. ... https://tiddlywiki.com/plugins/tiddlywiki/codemirror/ may give you some hints.

@everyone interested: Pull requests are very welcome :)

-m
Reply all
Reply to author
Forward
0 new messages