javalent / admonitions

Adds admonition block-styled content to Obsidian.md
MIT License
1.05k stars 67 forks source link

Failed to enable plugin in 1.0 #274

Closed StevenGann closed 1 year ago

StevenGann commented 1 year ago

Describe the bug On startup Obsidian does not enable this plugin. Manually enabling on the list of installed plugins fails and shows a "Failed to enable plugin" toast. Going into the community Plugin list and pressing the enable button there causes the same error, but the plugin enables and functions correctly despite the error.

To Reproduce Steps to reproduce the behavior:

  1. Install the latest Obsidian (1.0.3) on Windows or Linux
  2. Install the latest version of this plugin
  3. Attempt to enable the plugin
  4. See error in console
app.js:1 Plugin failure: obsidian-admonition DOMException: Failed to execute 'insertBefore' on 'Node': The node before which the new node is to be inserted is not a child of this node.
    at r4.<anonymous> (app://obsidian.md/app.js:1:1032505)
    at app://obsidian.md/app.js:1:235201
    at Object.next (app://obsidian.md/app.js:1:235306)
    at a (app://obsidian.md/app.js:1:234045)

Expected behavior I expect the plugin to be enabled on startup.

Environment:

sigrunixia commented 1 year ago

Closing as there has been no further response on this thread. If this is still an issue, a new thread can be created.