Obsidian App doesn't seem to load custom plugin
When I follow the directions, Obsidian does not show the plugin as loaded. I have confirmed the repository is in the correct place, the packages are correctly installed, and npm run dev completes successfully.
I was reading the source code and noticed that one of the loading functions is sensitive to the "author" field in the manifest, so I went ahead and changed things around to match what I'm trying to do (support definition lists)
Here is my directory structure:
~/.obsidian/plugins/obsidian-definition-lists-plugin
I am on a MacBook Pro:
What I see:
I expected to see the plugin listed here, as per the directions in the README.
What I've tried:
- Modifying the manifest
- A separate vault
- Moving main.js into the /plugins/ directory itself (didn't work, moved it back)
- Wiping it out and starting over
- With each attempt:
- Reloading Obsidian through command
- Fully closing Obsidian, making sure the process is halted, and re-starting.
What is your current code?
The same is happening to me. Any know issue with the sample plugin code?
Do you have some code, on a repo perhaps so we can take a look?
I just realise that if I clone the plugin, it works but if I follow the manual process it doesn't work.
Copy over main.js, styles.css, manifest.json to your vault VaultFolder/.obsidian/plugins/your-plugin-id/.
I ran into the same issue. I needed to restart obsidian after cloning the sample plugin to the plugins directory in the vault, then it showed up.
Sorry! Totally forgot about this and wasn't watching notifications. I don't have any unique code. This happened while following the basic "How to use" section and then "Manually installing the plugin" to just clone the sample and get it showing in obsideon. I followed the steps as written on the README, so I imagine you could reproduce by starting out with a blank slate and doing the same.
@OneHoopyFrood bro I met the same issue as yours while I suddenly found that i mistakenly create the plugins folder into the vault(top directory) but not in .obsidian/ so that's the point where the sample plugin doesn't work. If you put the plugins folder into .obsidian/ and execute "npm i" && "npm run dev" and then reload the ob app, I can definitely say that it must work