pjeby / hot-reload

Automatically reload Obsidian plugins in development when their files are changed
ISC License
496 stars 23 forks source link

Plugin fails to unload every second reload (when main is updated) #13

Closed moremeyou closed 5 months ago

moremeyou commented 5 months ago

Hi there, This issues just started happening. Can't be sure if I've caused it. But maybe you can help.

Plugin failure: tag-buddy TypeError: Cannot read properties of undefined (reading 'e') at app.js:1:1148287 at e.unload (app.js:1:1147899) at e. (app.js:1:2027133) at app.js:1:237258 at Object.next (app.js:1:237363) at app.js:1:236279 at new Promise () at v (app.js:1:236024) at e.unloadPlugin (app.js:1:2027038) at e. (app.js:1:2030070) at app.js:1:237258 at Object.next (app.js:1:237363) at app.js:1:236279 at new Promise () at v (app.js:1:236024) at e.disablePlugin (app.js:1:2029944) at HotReload.reload (plugin:hot-reload:95:23) at eval (plugin:hot-reload:84:79)

pjeby commented 5 months ago

Does the same error occur when you manually disable the plugin?

moremeyou commented 5 months ago

It does! Sorry to bother you with it. I'll work it out :) D

On Thu, Feb 22, 2024 at 1:29 AM PJ Eby @.***> wrote:

Does the same error occur when you manually disable the plugin?

— Reply to this email directly, view it on GitHub https://github.com/pjeby/hot-reload/issues/13#issuecomment-1958446911, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACEOMHE3MKXMAIYAKABGUSLYU2GP7AVCNFSM6AAAAABDT7JH4OVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSNJYGQ2DMOJRGE . You are receiving this because you authored the thread.Message ID: @.***>