aidenlx / alx-folder-note

Add description, summary, and more info to folders with folder notes.
MIT License
244 stars 13 forks source link

Error consistently printing to console #130

Open codyburleson opened 7 months ago

codyburleson commented 7 months ago

Console error consistently printing to the console:

app.js:1 Failed to open view TypeError: Cannot read properties of undefined (reading 'navFileContainerEl')
    at t.eval (plugin:alx-folder-note:4821:45)
    at t.wrapper [as load] (plugin:alx-folder-note:4107:20)
    at t.<anonymous> (app.js:1:1402700)
    at app.js:1:237258
    at Object.next (app.js:1:237363)
    at app.js:1:236279
    at new Promise (<anonymous>)
    at v (app.js:1:236024)
    at t.open (app.js:1:1402572)
    at t.<anonymous> (app.js:1:1825868)
FynnFreyer commented 7 months ago

Can confirm, have the same thing happening. Seems to be due to fileExplorer.dom being undefined.

I have added appropriate checks #133

FynnFreyer commented 7 months ago

With that patch applied, I don't get any errors, and the plugin seems to be working still. Haven't done extensive testing though (and also won't, except for just using it normally)

MJHop commented 6 months ago

I'm sorry for the stupid question.. but how do I add in this fix? Having the same issue and I uninstalled and reinstalled the plugin but it's still happening.

SebastianMC commented 5 months ago

Hi @MJHop

It's been more than a month since your post here, but maybe this will be helpful also for others.

Please look at my longer comment in issue 134. It contains instructions on how to easily install the patched version of alx-folder-note plugin, compatible with Obsidian 1.5.4 (and newer) by using the well known BRAT plugin.