TiddlyWiki App: A Smooth User Experience (2025) for Multiple Platforms

Ah ha! That could very likely affect things!

The TWCore “info” mechanism, $:/core/modules/startup/info.js, includes the following declarations:

exports.before = ["startup"];
exports.after = ["load-modules"];

In a normal browser environment the window object already exists when the “info” handlers are invoked (after “load-modules” but before “startup”).

However, in your tiddlywiki-app, the window object is only created after “startup”, so any module-type:info tiddlers that need access to the window object will fail.

Perhaps you can create the window object earlier in the tiddlywiki-app load sequence, but only display it after the page has finished loading?

-e

1 Like

https://deepwiki.com/oeyoews/tiddlywiki-app

3 Likes

I have being using tiddlywiki-app for some weeks now and converted my large single file to a folder wiki. Unfortunately I am now getting the following error on first run;

Clicking OK does nothing, launching again gives me a blank tiddlywiki-app window with only the menus.

  • I can open another wiki fine, just not my master wiki as it triggers the above message.

I expect I can access my folder wiki with standard node if I must but I would like to fix this issue to keep using TiddlyWiki-app. Any assistence would be appreciated.

  • It looks like an error has being saved to disk

C:\Users\xxx\AppData\Roaming\tiddlywiki-app\config.json Can I see your configuration file, similar to this path, or your wiki, I am not sure if your wiki has some errors after conversion that caused the startup failure

1 Like

Thanksa @oeyoews

Here it is;

Master is the one I need to access (to save my life :nerd_face:)

{
	"winState": true,
	"defaultPort": 9090,
	"username": null,
	"lan": true,
	"icon": false,
	"wikiPath": "I:\\!Master\\TiddlyWiki-app",
	"language": null,
	"markdown": false,
	"autocorrect": false,
	"lang-CN": false,
	"recentWikis": [
		"C:\\Users\\antho\\OneDrive - People, Systems and Things\\Desktop\\wiki",
		"I:\\!Master\\TiddlyWiki-app"
	],
	"github": {
		"token": null
	},
	"window": {
		"width": 800,
		"height": 601,
		"x": -8,
		"y": 0,
		"isMaximized": false,
		"isFullScreen": false
	}
}

Now I realise its line 14 column 9 I can see its the first " for the second recentWikis entry.

I dont recall creating the first “recent wiki” on the desktop?

So I just reversed the order to test;

	"recentWikis": [
		"I:\\!Master\\TiddlyWiki-app",
		"C:\\Users\\antho\\OneDrive - People, Systems and Things\\Desktop\\wiki"
	],

Oddly I get the exact same error. position/line and column.

The problem

Its seems to me perhaps the app is not coping with the comma in the path to the desktop wiki?

Your support greatly appreciated.

Try using \, to “escape” the comma (similar to the way \\ is used to “escape” the backslashes)

@EricShulman thanks for the suggestion but this failed, it resulted in a longer cascade of errors.

  • I suspect it has more todo with the code in tiddlywiki-app as it updates these values according to interaction within the app interface.
{
	"winState": true,
	"defaultPort": 9090,
	"username": null,
	"lan": true,
	"icon": false,
	"wikiPath": "I:\\!Master\\TiddlyWiki-app",
	"language": null,
	"markdown": false,
	"autocorrect": false,
	"lang-CN": false,
	"recentWikis": [
		"I:\\!Master\\TiddlyWiki-app"
	],
	"github": {
		"token": null
	},
	"window": {
		"width": 800,
		"height": 601,
		"x": -8,
		"y": 0,
		"isMaximized": false,
		"isFullScreen": false
	}
}

Try using this configuration file. I’m curious why there was no error when I opened the app for the first time.

1 Like

"C:\\Users\\antho\\OneDrive - People, Systems and Things\\Desktop\\wiki" This is the first time the program enters the automatically created wiki

1 Like

I replaced the config with the one above and the default wiki returned, then when I tried to access I:\\!Master\\TiddlyWiki-app the original error returned. TiddlyWiki App: A Smooth User Experience (2025) for Multiple Platforms - #288 by TW_Tones

Returning to the config.json I see the default wiki has being added back in;

This suggests to me;

  • There is something broken in the settings on disk for I:\\!Master\\TiddlyWiki-app throwing the above error.
  • Or tiddlywiki-app is not happy with this wiki entry

Notes:

  • I think the only change I made was the default port, via the application?
  • I was exploring how to install plugins into tiddlywiki-app (root) but had not yet made any changes.

Question:

  • Is there a way to remove I:\\!Master\\TiddlyWiki-app and add it back while not touching the files/and folders?, I want to retain changes therein, and regain access.

Research

This is a snapshot of the tiddlers folder under my master wiki, last changed at top, and I find it odd that the event.* files are there (I was experimenting with ics.files though)

I deleted event.* and no change.

Master wikis tiddlywiki.info

{
    "plugins": [
        "tiddlywiki/browser-sniff",
        "tiddlywiki/browser-storage",
        "tiddlywiki/codemirror",
        "tiddlywiki/codemirror-search-replace",
        "tiddlywiki/dynaview",
        "tiddlywiki/freelinks",
        "tiddlywiki/highlight",
        "tiddlywiki/internals",
        "tiddlywiki/menubar",
        "tiddlywiki/tiddlyweb",
		"tiddlywiki/markdown"
        "tiddlywiki/filesystem"
    ],
    "themes": [
        "tiddlywiki/vanilla"
    ],
    "config": {
        "retain-original-tiddler-path": true
    },
    "languages": []
}

[Edited] I was happily using my master wiki for some time before this error occured. Mostly through open in browser.
[Edited 2] The master wiki was created from an existing single file wiki,
I tried open existing wiki and went to I:\\!Master\\TiddlyWiki-app with no responce.

1 Like


It doesn’t look like a path problem.

{
    "plugins": [
        "tiddlywiki/browser-sniff",
        "tiddlywiki/browser-storage",
        "tiddlywiki/codemirror",
        "tiddlywiki/codemirror-search-replace",
        "tiddlywiki/dynaview",
        "tiddlywiki/freelinks",
        "tiddlywiki/highlight",
        "tiddlywiki/internals",
        "tiddlywiki/menubar",
        "tiddlywiki/tiddlyweb",
        "tiddlywiki/markdown",
        "tiddlywiki/filesystem"
    ],
    "themes": [
        "tiddlywiki/vanilla"
    ],
    "config": {
        "retain-original-tiddler-path": true
    },
    "languages": []
}

Replace your tiddlywiki.info file with this, you are missing a comma, it looks like you modified the file manually

Tiddlywiki will check this file, for example, you are missing a comma in the 9th column of line 14

image

1 Like

Tiddlywiki app version 4.8.0 has been released, supports vue-rss plugin

1 Like

That was it, would help if that error message mentioned the tiddlywiki.info file but clearly it was “my bad”, in my defence I am working through the instalation of a plugin to the server for the first time in ages.

Otherwise I am really enjoying tiddlywiki-app’s functionality, thanks for your contribution.

@jeremyruston What do you think of this? I think it is reasonable to add the source for tiddlywiki.info files that are not properly formatted.

In fact, the function of enabling the tiddlywiki plugin library was added a long time ago, but there were some bugs in the middle and it was not noticed. It was fixed in 4.8.1.

I dont want to missdirect this thread but the instructions end with the tiddlywiki.info update and make no mention how to find and install the file/folder version of that plugin, nor does it provide a way to install plugins that do not have a file/folder version on the net/github.

  • Also it is valid to install a plugin to that wiki instance, they work and will not appear in all subwikis, this is often required. How do you install core plugins this way, you can from other libraries. It should be a warning but not a prohibition.
  • I belive we could make a plugin that allows generating the plugin file/folders and infact even a full set of library files into a zip we copuld then “download” and unzip somewhere appropriate.

But if you are not developing, it is more common to install plugins using json files. Do you want to install the plugin globally?

I want to know how, yes some plugins global like relink, markdown. I will keep researching. No need to answer here, or use a direct message and I will post a discussion when I have the details.

It does take some time to figure it out, I was confused here until I figured it out. The key is environment variables, and some knowledge of nodejs plugin development. Once you understand these, you can write plugins in any way, almost everything you see on a web browser