obsidian-folder-notes icon indicating copy to clipboard operation
obsidian-folder-notes copied to clipboard

plugin:folder-notes:2515 Uncaught (in promise) TypeError: Cannot read properties of undefined (reading '/')

Open tralce opened this issue 9 months ago • 1 comments

In the hopes of drumming up attention about this, I decided to create a new issue. It looks like this is being discussed in #175 and #205 as well.

It is at minimum preventing me from using the Explorer overview style.

I have plenty of time to gather information and test, so if there is anything at all I can do to troubleshoot, hit me up!

Dealing with this too. For fun I tried disabling every other plugin and reenabling them one by one until it generated an error in the console. When I enabled From Template -- unsure if this is even related to From Template! -- it spat this one:

TypeError: Cannot read properties of undefined (reading '')
    at getEl (plugin:folder-notes:2515:55)
    at FolderOverview.cloneFileExplorerView (plugin:folder-notes:3653:20)
    at eval (plugin:folder-notes:3619:16)
    at t.<anonymous> (app.js:1:2223660)
    at app.js:1:239667
    at Object.next (app.js:1:239772)
    at a (app.js:1:238490)

I disabled From Template again and several others I'd enabled around the same time but it kept spitting

Uncaught TypeError: Cannot read properties of undefined (reading '/')
    at getEl (plugin:folder-notes:2515:55)
    at removeCSSClassFromEL (plugin:folder-notes:2500:28)
    at eval (plugin:folder-notes:2431:7)
    at Array.forEach (<anonymous>)
    at loadFileClasses (plugin:folder-notes:2425:40)
    at eval (plugin:folder-notes:5752:11)
    at t.tryTrigger (app.js:1:742047)
    at t.trigger (app.js:1:741980)
    at t.trigger (app.js:1:2258184)
    at t.<anonymous> (app.js:1:2196159)

and even on a fresh Reload App Without Saving with ONLY folder notes enabled:

Uncaught (in promise) TypeError: Cannot read properties of undefined (reading '/')
    at getEl (plugin:folder-notes:2515:55)
    at removeCSSClassFromEL (plugin:folder-notes:2500:28)
    at eval (plugin:folder-notes:2431:7)
    at Array.forEach (<anonymous>)
    at loadFileClasses (plugin:folder-notes:2425:40)
    at eval (plugin:folder-notes:5749:9)
    at t.<anonymous> (app.js:1:2223660)
    at app.js:1:239667
    at Object.next (app.js:1:239772)
    at a (app.js:1:238490)

More than happy to help troubleshoot but I want this to work, badly! I love the overview and am looking for it to replace Folder Index for me.

Originally posted by @tralce in #205

tralce avatar Mar 31 '25 15:03 tralce

#175 has the solution. It happens when you disable the FileTree View as it seems, as I'm using mainly Alternative File Tree I couldn't even enable the plugin as long that view was active

MMoMM-org avatar Apr 08 '25 18:04 MMoMM-org

In the hopes of drumming up attention about this, I decided to create a new issue. It looks like this is being discussed in #175 and #205 as well.

It is at minimum preventing me from using the Explorer overview style.

I have plenty of time to gather information and test, so if there is anything at all I can do to troubleshoot, hit me up!

Dealing with this too. For fun I tried disabling every other plugin and reenabling them one by one until it generated an error in the console. When I enabled From Template -- unsure if this is even related to From Template! -- it spat this one:

TypeError: Cannot read properties of undefined (reading '')
    at getEl (plugin:folder-notes:2515:55)
    at FolderOverview.cloneFileExplorerView (plugin:folder-notes:3653:20)
    at eval (plugin:folder-notes:3619:16)
    at t.<anonymous> (app.js:1:2223660)
    at app.js:1:239667
    at Object.next (app.js:1:239772)
    at a (app.js:1:238490)

I disabled From Template again and several others I'd enabled around the same time but it kept spitting

Uncaught TypeError: Cannot read properties of undefined (reading '/')
    at getEl (plugin:folder-notes:2515:55)
    at removeCSSClassFromEL (plugin:folder-notes:2500:28)
    at eval (plugin:folder-notes:2431:7)
    at Array.forEach (<anonymous>)
    at loadFileClasses (plugin:folder-notes:2425:40)
    at eval (plugin:folder-notes:5752:11)
    at t.tryTrigger (app.js:1:742047)
    at t.trigger (app.js:1:741980)
    at t.trigger (app.js:1:2258184)
    at t.<anonymous> (app.js:1:2196159)

and even on a fresh Reload App Without Saving with ONLY folder notes enabled:

Uncaught (in promise) TypeError: Cannot read properties of undefined (reading '/')
    at getEl (plugin:folder-notes:2515:55)
    at removeCSSClassFromEL (plugin:folder-notes:2500:28)
    at eval (plugin:folder-notes:2431:7)
    at Array.forEach (<anonymous>)
    at loadFileClasses (plugin:folder-notes:2425:40)
    at eval (plugin:folder-notes:5749:9)
    at t.<anonymous> (app.js:1:2223660)
    at app.js:1:239667
    at Object.next (app.js:1:239772)
    at a (app.js:1:238490)

More than happy to help troubleshoot but I want this to work, badly! I love the overview and am looking for it to replace Folder Index for me.

Originally posted by @tralce in #205

Can you confirm if it still happens with the beta version and if you only want to use the folder overview you can install it separately now, see https://github.com/LostPaul/obsidian-folder-overview

LostPaul avatar Jun 02 '25 07:06 LostPaul