felixhayashi / TW5-TiddlyMap

Map drawing and topic visualization for your wiki
http://tiddlymap.org
BSD 2-Clause "Simplified" License
845 stars 127 forks source link

Uncaught TypeError: Cannot read properties of undefined (reading 'fields') #432

Closed turtlekey closed 1 year ago

turtlekey commented 1 year ago

I have followed the full steps of the repo suggestion option 2 to install TiddlyMap, but I got the following error:

Internal JavaScript Error
Well, this is embarrassing. It is recommended that you restart TiddlyWiki by refreshing your browser
Uncaught TypeError: Cannot read properties of undefined (reading 'fields')

more details as following:

Uncaught TypeError: Cannot read properties of undefined (reading 'fields')
    at Object.e [as getDataUri] (tmap:12:1759)
    at command.datauri (tmap:11:1039)
    at MacroCallWidget.run (tmap:11:699)
    at Widget.evaluateMacroModule (widget.js:219:21)
    at Widget.getVariableInfo (widget.js:137:14)
    at MacroCallWidget.execute (macrocall.js:53:23)
    at MacroCallWidget.render (macrocall.js:33:7)
    at Widget.renderChildren (widget.js:450:15)
    at ElementWidget.render (element.js:78:7)
    at Widget.renderChildren (widget.js:450:15)

Tiddlywiki Version: v5.2.3 TiddlyMap Version: v0.17.14 Node.js Version: v16.14.0 Broswer: Chrome 106.0.5249.119 (cohort: Stable) Other Tiddlywiki plugins installed: highlight, tiddlyweb, filesystem

I can't figure out it, I'm looking forward your replyπŸ™πŸΌπŸ™πŸΌπŸ™πŸΌ Thank you all so much🌹🌹🌹

ps: It works using the option1( drag and drop) to install the TiddlyMap.

flibbles commented 1 year ago

On top of highlight, tiddlyweb, and filesystem, I assume you also have tw5-vis-network, TW5-HotZone, and TW5-TopStoryView installed, as those plugins are required for TiddlyMap?

turtlekey commented 1 year ago

@flibbles Yes, I have downloaded them and put them together with TiddlyMap in the tiddlywiki/plugins directory, just as the option2 mentioned.

flibbles commented 1 year ago

Just needed to make sure. You didn't list those plugins among the others you'd installed.

Looks like I may have introduced an issue regarding the image files a while back. I've pushed a change. Try the "Download ZIP" and copy of dist again for TiddlyMap (and only with TiddlyMap. The dependencies are fine). Let me know if that fixes it.

turtlekey commented 1 year ago

@flibbles Thanks so much, it works now. What a genius you are!πŸŒΉπŸŒΉπŸ‘πŸ‘

flibbles commented 1 year ago

...not so much, seeing as how I cause the problem to begin with. But I'll take the compliment πŸ₯‡

I'm glad it's working for you now. I'll close out the issue.