Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Templater Error #1

Open
berot3 opened this issue Nov 17, 2023 · 2 comments
Open

Templater Error #1

berot3 opened this issue Nov 17, 2023 · 2 comments

Comments

@berot3
Copy link

berot3 commented Nov 17, 2023

attendeestring = await tp.system.prompt("Attendees","Person 1 and Person 2");

Hi! I know nothing about templater since I just started :)

I get this error in the console:

Templater Error: Template parsing error, aborting. 
 attendeestring is not defined
  log_error @ plugin:templater-obsidian:61
  errorWrapper @ plugin:templater-obsidian:81
  await in errorWrapper (async)    
  create_new_note_from_template @ plugin:templater-obsidian:3595
  await in create_new_note_from_template (async)    
  onChooseItem @ plugin:templater-obsidian:2263
  t.onChooseSuggestion @ app.js:1
  t.selectSuggestion @ app.js:1
  e.useSelectedItem @ app.js:1
  (anonymous) @ app.js:1
  e.handleKey @ app.js:1
  e.onKeyEvent @ app.js:1

@P9k
Copy link
Owner

P9k commented Nov 20, 2023

Hi @berot3,

Thank you for the interest in the template! :) Unfortunately, I am really not an expert in this topic and just used this little project to get some experience.

Since the code still works for me in the current Obsidian version (I just checked), I suspect that the problem lies in the way you call the template.

I do it via a button as detailed here:

https://github.com/P9k/obsidian-meeting-time-finder

@berot3
Copy link
Author

berot3 commented Nov 20, 2023

Thank a lot for sharing! will check it out.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants