nicojeske / mousewheel-image-zoom

An Obsidian plugin that enables you to increase/decrease the size of an image by holding down a configurable key (defaults to left alt), hovering over an image in preview mode and scrolling.
MIT License
90 stars 5 forks source link

Failed to load plugin #1

Closed JohnV7 closed 3 years ago

JohnV7 commented 3 years ago

Seems like a great idea, but unfortunately I cannot enable it. I get the message

failed to load plugin

Any idea how to resolve this?

nicojeske commented 3 years ago

Could you test making a temporary new obsidian vault and installing only the plugin there and check if it works? Maybe another plugin somehow interferes.

Also check if you installed the plugin correctly. In .obsidian/plugins you should create a new folder "mousewheel-image-zoom" and put the main.js and manifest.json from here in the folder.

If that also does not help, please press CTRL+Shift+I to open the developer console and send me any error messages that are shown on the console.

typhune commented 3 years ago

Same issue here. I believe your "main.ts" file should be "main.js". however when renaming the file, still get an error.
image

nicojeske commented 3 years ago

You can not use the main.ts from the repository, as this is the Typescript source code which is not yet compiled to javascript. Make sure to download the main.js and the manifest.json from the Github Releases under assets:

image

JohnV7 commented 3 years ago

this last suggestion worked. Awesome! Many thanks!

nicojeske commented 3 years ago

Happy to hear that it now works for you @JohnV7!

@typhune I am going to close this issue. Feel free to open a new Issue if your problem is not resolved.