Giter Club home page Giter Club logo

Comments (12)

Vinzent03 avatar Vinzent03 commented on August 22, 2024

Is there any error in the console? (CTRL + SHIFT + I) And can you try to restart Obsidian?

from obsidian-hotkeys-for-templates.

spudravi avatar spudravi commented on August 22, 2024

seeing the same error, the error message on my console is

Uncaught (in promise) TypeError: Cannot read property 'replace' of undefined at te (app.js:1) at Module.ee (app.js:1) at HotkeysForTemplates.enumerateTemplates (eval at <anonymous> (app.js:1), <anonymous>:2269:51) at eval (eval at <anonymous> (app.js:1), <anonymous>:2170:35) at t.onLayoutReady (app.js:1) at HotkeysForTemplates.eval (eval at <anonymous> (app.js:1), <anonymous>:2168:44) at step (eval at <anonymous> (app.js:1), <anonymous>:68:23) at Object.eval [as next] (eval at <anonymous> (app.js:1), <anonymous>:49:53) at fulfilled (eval at <anonymous> (app.js:1), <anonymous>:39:58)

and

Uncaught TypeError: Cannot read property 'replace' of undefined at te (app.js:1) at Module.ee (app.js:1) at HotkeysForTemplates.enumerateTemplates (eval at <anonymous> (app.js:1), <anonymous>:2269:51) at SettingsTab.display (eval at <anonymous> (app.js:1), <anonymous>:2508:21) at t.openTab (app.js:1) at HTMLDivElement.<anonymous> (app.js:1)

I am on version 1.4.2

from obsidian-hotkeys-for-templates.

Vinzent03 avatar Vinzent03 commented on August 22, 2024

So far I couldn't reproduce it. Did you install the plugin and then the issue appears, or have you already used it? Did something change that could cause this behavior?

from obsidian-hotkeys-for-templates.

spudravi avatar spudravi commented on August 22, 2024

Hey sorry, but it somehow fixed itself after i restarted obsidian 2 times

I dont know why it originally happened

from obsidian-hotkeys-for-templates.

1activegeek avatar 1activegeek commented on August 22, 2024

I've run into this issue now as well. Not sure what is wrong here but it is erroring on the load with the following message:

app.js:1 Uncaught (in promise) TypeError: Cannot read property 'replace' of undefined
    at Oe (app.js:1)
    at Module.Fe (app.js:1)
    at HotkeysForTemplates.enumerateTemplates (eval at <anonymous> (app.js:1), <anonymous>:2248:48)
    at eval (eval at <anonymous> (app.js:1), <anonymous>:2170:35)
    at t.onLayoutReady (app.js:1)
    at HotkeysForTemplates.eval (eval at <anonymous> (app.js:1), <anonymous>:2168:44)
    at step (eval at <anonymous> (app.js:1), <anonymous>:68:23)
    at Object.eval [as next] (eval at <anonymous> (app.js:1), <anonymous>:49:53)
    at fulfilled (eval at <anonymous> (app.js:1), <anonymous>:39:58)

UDPATE: Tried manually dropping in your previous release version 1.4.2, and it worked successfully without issue. I'd suggest something that was changed has caused an issue. I also notice there is a .css file that seems to be missing and it is popping a 404 on attempt to grab said CSS.

Platform info:
Obsidian v0.12.19
macOS Monterey 12.0.1
M1 Mac Mini

from obsidian-hotkeys-for-templates.

Vinzent03 avatar Vinzent03 commented on August 22, 2024

@1activegeek Did you install the plugin just now or were you already using it?

from obsidian-hotkeys-for-templates.

1activegeek avatar 1activegeek commented on August 22, 2024

Freshly installed. Though I also tried loading the old version first, then "updating" in the console of Obsidian. Also involved completely closing an restarting the app. None of those options resulted in success.

from obsidian-hotkeys-for-templates.

Vinzent03 avatar Vinzent03 commented on August 22, 2024

Ok after some researching I think you have the templater plugin enabled? There's something wrong with the templater folder. Could you try clearing the textfield and reentering the path? And if the issue still persists please share the output of the following command in the console (Ctrl + Shift + I) app.plugins.plugins["templater-obsidian"].settings.templates_folder

from obsidian-hotkeys-for-templates.

1activegeek avatar 1activegeek commented on August 22, 2024

I can certainly give this a go. When you say clear the field - do you mean in the templater settings? Or in your plugin settings? If the later, that wouldn't be possible as nothing shows up in the settings window.

from obsidian-hotkeys-for-templates.

1activegeek avatar 1activegeek commented on August 22, 2024

So I ran the command you mentioned first out of interest in the current working version of the plugin, the result was undefined. As you can see here, this is with your plugin working and it currently returns undefined:
image
Fairly certain that is undesirable, so updating to the latest version is also likely to fail as your plugin won't change this setting on the templater plugin. I've also disabled the core templates plugin just in case there was competing issues.

from obsidian-hotkeys-for-templates.

Vinzent03 avatar Vinzent03 commented on August 22, 2024

Are you on templater version < 1.9? If not, please update.

from obsidian-hotkeys-for-templates.

1activegeek avatar 1activegeek commented on August 22, 2024

Ok, that did it. Might want to just mark that as a required version so as to avoid the confusion. Thanks for looking into it and resolving, now happily running the latest version. 😃

from obsidian-hotkeys-for-templates.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.