Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Internal JavaScript Error after importing and changing tabs in sidebar #2

Open
reflektoin opened this issue Aug 9, 2023 · 0 comments

Comments

@reflektoin
Copy link

Hey,
Thanks for making the package. Looks useful!

I can use it by downloading the whole page but ran into some problems installing it as plugin to the newest TiddlyWiki version

Have you managed to import the plugin to the newest version of Tiddlywiki acquired from here?

I tried importing the plugin by dragging the plugin block from https://tadeas.dev/twsr/.

After importing, saving and loading the saved file I switched to tab SR and then to Recent and i get the following error

Internal JavaScript Error

Well, this is embarrassing. 

It is recommended that you restart TiddlyWiki by refreshing your browser
TypeError: domNode.parentNode is null

Looking at console, there's message:

Uncaught TypeError: domNode.parentNode is null

And that's in Widget.js

Widget.prototype.removeLocalDomNodes = function() {
	// If this widget has directly created DOM nodes, delete them and exit.
	if(this.domNodes.length > 0) {
		$tw.utils.each(this.domNodes,function(domNode) {
			domNode.parentNode.removeChild(domNode);
		});
		this.domNodes = [];
	}
};

I tried it on Chrome and Firefox.

I just started using TiddlyWiki so I might be doing something wrong...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant