org-roam-ui cannot visualize all nodes
Recently, when I started org-roam-ui
, Firefox reported an error in a blank page:
Application error: a client-side exception has occurred (see the browser console for more information).
At the beginning, I temporarily solved the problem by sifting out “Orphan” nodes. This manual operation must be quick enough before the above error appears.
Or an easier way is to open the Firefox developer tool, then go to “Storage → Local Storage → http://localhost:35901”, and modify the value of the key filter
as below.
To find the real cause of the above problem, today I cleaned the org-roam
folder first, then added my Org files back one-by-one and finally found the culprit came from a file named cpp.org
. But still, the exact error location was not known. Further, I deleted each note in this file one-by-one until I found out the problem was caused by a note with a tag constructor
. Unfortunately, constructor
is a special method of a Javascript class for creating and initializing an instance of that class. So org-roam-ui
must have treated this note tag as a function to execute.
Solution
Do not add constructor
tag to any org-roam
note.