Comments (12)
Is there any error in the console? (CTRL + SHIFT + I
) And can you try to restart Obsidian?
from obsidian-hotkeys-for-templates.
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.
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.
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.
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.
@1activegeek Did you install the plugin just now or were you already using it?
from obsidian-hotkeys-for-templates.
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.
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.
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.
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:
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.
Are you on templater version < 1.9? If not, please update.
from obsidian-hotkeys-for-templates.
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)
- Creation of a new note via link doesn't trigger the template insertion HOT 4
- Variables in the template don't work here? HOT 1
- Wrap contents of template around selected text HOT 9
- Bug interacting with Templater HOT 2
- New file creation along with tp.file.move/tp.file.rename results in extra empty file HOT 2
- Bug when using hotkeys for templates that work on selected words. HOT 12
- (little) Conflict with "Filename Heading Sync" HOT 5
- When moving a template from folder, hotkeys for template doesn't update template path
- Invoke with Tab HOT 1
- It doesn't work for the subfolder of the path set in text field HOT 3
- Cannot configure the plugin in Preferences HOT 4
- Error upon opening: Failed to load plugin obsidian-hotkeys- for-templates HOT 2
- [Feature Request] Add generic hotkey to create file from template
- [Feature request] Create note in a given folder from template HOT 3
- Not compatible with Templater v1.6.0 HOT 2
- After changing/removing "Add new note" entry, hotkey still available HOT 2
- Feature Request: Possible to trigger new templated note WITHOUT using a hotkey or command? HOT 9
- Default Template doesn't work with nested folders HOT 5
- Applies the template twice HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from obsidian-hotkeys-for-templates.