Skip to content
This repository has been archived by the owner on Jul 21, 2022. It is now read-only.

Error message at startup TypeError: Cannot read property 'name' of undefined with Obsidian 0.15.1 #9

Open
claremacrae opened this issue Jun 16, 2022 · 5 comments

Comments

@claremacrae
Copy link

claremacrae commented Jun 16, 2022

Hello,

I noticed an error in the console from this plugin at startup with:

  • Obsidian 0.15.1 (Insider)
  • Macros version 0.1.0 (current version)

Error message at startup TypeError: Cannot read property 'name' of undefined

plugin:macro-plugin:2736 Uncaught (in promise) TypeError: Cannot read property 'name' of undefined
    at eval (plugin:macro-plugin:2736)
    at Array.forEach (<anonymous>)
    at eval (plugin:macro-plugin:2734)
    at Array.forEach (<anonymous>)
    at MacroSettingsTab.display (plugin:macro-plugin:2732)
    at SettingsSearch.getTabResources (plugin:settings-search:170)
    at SettingsSearch.buildPluginResources (plugin:settings-search:120)
    at eval (plugin:settings-search:122)
eval @ plugin:macro-plugin:2736
eval @ plugin:macro-plugin:2734
display @ plugin:macro-plugin:2732
getTabResources @ plugin:settings-search:170
buildPluginResources @ plugin:settings-search:120
eval @ plugin:settings-search:122
setTimeout (async)
buildPluginResources @ plugin:settings-search:122
eval @ plugin:settings-search:122
setTimeout (async)
buildPluginResources @ plugin:settings-search:122
eval @ plugin:settings-search:122
setTimeout (async)
buildPluginResources @ plugin:settings-search:122
eval @ plugin:settings-search:105
(anonymous) @ app.js:1
(anonymous) @ app.js:1
(anonymous) @ app.js:1
s @ app.js:1
Promise.then (async)
l @ app.js:1
s @ app.js:1
Promise.then (async)
l @ app.js:1
(anonymous) @ app.js:1
m @ app.js:1
t.loadLayout @ app.js:1
(anonymous) @ app.js:1
(anonymous) @ app.js:1
(anonymous) @ app.js:1
s @ app.js:1
Promise.then (async)
l @ app.js:1
s @ app.js:1
Promise.then (async)
l @ app.js:1
s @ app.js:1
Promise.then (async)
l @ app.js:1
s @ app.js:1
Promise.then (async)
l @ app.js:1
s @ app.js:1
@phibr0
Copy link
Owner

phibr0 commented Jun 16, 2022

This plugin is kind of broken in a few ways. I'm currently rewriting it as part of the new Commander Plugin with lots more functionality.

I will probably remove the plugin and archive this repo soon

@phibr0
Copy link
Owner

phibr0 commented Jun 16, 2022 via email

@claremacrae
Copy link
Author

Disabling the 'Settings Search' plugin made this error go away.

@claremacrae
Copy link
Author

This plugin is kind of broken in a few ways. I'm currently rewriting it as part of the new Commander Plugin with lots more functionality.

I will probably remove the plugin and archive this repo soon

Understood. Many thanks for the replies.

@claremacrae
Copy link
Author

Here is the reply from Settings Search:
javalent/settings-search#17 (comment)

Settings search renders settings tabs on load in order to grab settings elements. If a plugin has errors in their settings tabs, they will show up here.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
Status: to do
Development

No branches or pull requests

2 participants