Closed holroy closed 6 months ago
Do you also have a manifest.json file in that folder, as documented here? That file is required for a plugin to work.
Less likely, but maybe you're running an older version of node? The build works for me on the LTS version (20.12.1). Though I tried it on 16.17.0 as well and that also worked.
I'm not sure what really happened, but I fiddled around, cloned/downloaded/..., and now it seems to work as expected at least when I'm doing the npm run dev
. So I guess it's all good now.
If I try to just recompile your plugin in a fork of mine, it fails when trying to be loaded in Obsidian 1.5.12. Which steps are needed to take?
I tried doing:
npm i
npm run build
ornpm run dev
main.js
& co to my.obsidian/plugins/css-editor
foldercss-editor
, and I get this message:Do you have any suggestion on what I'm doing wrong?