Skip to content

"Failed to load plugin dendron-tree" on Obsidian startup #15

@lawb4

Description

@lawb4

Hi, I managed to run the plugin successfully for the first time, but when I restarted Obsidian, I got a "failed to load plugin dendron-tree" message and there is no "tree view" in the plugin window anymore.

I checked the console and it says the following:

TypeError: a.title.localeCompare is not a function
    at eval (plugin:dendron-tree:870:42)
    at Array.sort (<anonymous>)
    at Note.sortChildren (plugin:dendron-tree:870:19)
    at eval (plugin:dendron-tree:872:46)
    at Array.forEach (<anonymous>)
    at Note.sortChildren (plugin:dendron-tree:872:21)
    at eval (plugin:dendron-tree:872:46)
    at Array.forEach (<anonymous>)
    at Note.sortChildren (plugin:dendron-tree:872:21)
    at eval (plugin:dendron-tree:872:46)
    at Array.forEach (<anonymous>)
    at Note.sortChildren (plugin:dendron-tree:872:21)
    at NoteTree.sort (plugin:dendron-tree:915:15)
    at DendronVault.init (plugin:dendron-tree:1273:15)
    at DendronWorkspace.changeVault (plugin:dendron-tree:2609:13)
    at DendronTreePlugin.onRootFolderChanged (plugin:dendron-tree:3370:20)
    at eval (plugin:dendron-tree:3327:12)
    at t.<anonymous> (app.js:1:1983837)
    at app.js:1:237258
    at Object.next (app.js:1:237363)
    at a (app.js:1:236081)

Could you please look into the issue? I've attached a screenshot of the visual bug, if that helps

XXkyTreqjX

If more info needed, I would be glad to provide it

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions