obsidian-templates icon indicating copy to clipboard operation
obsidian-templates copied to clipboard

Hi, great template! Quick question. Do you know I'm seeing this?

Open Kmfernan5 opened this issue 2 years ago • 3 comments

Hi, great template! Quick question. Do you know I'm seeing this?

Evaluation Error: Error: No JSON code block found in file: #config/habits at Config.readConfig (.obsidian/scripts/config.js:23:19) at async eval (eval at (plugin:dataview), :5:16) at async DataviewJSRenderer.render (plugin:dataview:18678:13)

https://share.zight.com/6quwGb2Q

https://share.zight.com/nOuQbKkD

Is there a scripts folder or CSS files?

Kmfernan5 avatar Oct 31 '23 22:10 Kmfernan5

Hmm it's supposed to read a JSON code block from the Habits.config file. Could you check the content of that file? It should be tagged with #config/habits

image

This indeed all happens with some Javascript code in a scripts folder:

image (you need to open it in Finder or an editor other than Obsidian to see it) Here the config.js and habitTracker.js are the relevant files

ykerus avatar Nov 01 '23 07:11 ykerus

Thank you so much for your quick response. I appreciate it. I currently use Windows 11 and have confirmed that the file is present. However, I am not sure if this issue is because I am using a Windows laptop and not a Mac. Could it be related to this? Alos, would it be possible for you to record your screen while you demonstrate the workflow?

Also, I am confused about the script's location. Templater has a section that asks for a script folder, but it is currently blank. Should I fill it in? The scripts are in the obsidian folder, which is hidden, so I am not exactly sure what to do.

Things I'd like to fix

  1. Slides Preview https://share.zight.com/eDu0n0d7
  2. Template for a daily note 2023-11-02, Thu 2 Nov.pdf
  3. User Scripts Function Folder Location https://share.zight.com/DOuPkr0y
  4. Habits Page https://share.zight.com/eDu0n7p9
  5. Habits Config https://share.zight.com/QwuBjdy8

Kmfernan5 avatar Nov 02 '23 18:11 Kmfernan5

Here's a video: opening the vault, and tracking habits, lessons and milestones

Provided you have opened this exact folder as a new vault:

  • Habits should work out of the box.. 🤔 (if it doesn't work, could be Windows 🤷)
  • Slides preview is only for specifically formatted notes. Please see the advanced slides docs
  • The user scripts folder can be viewed in an editor such as VSCode, or just your file system viewer
  • Feel free to change anything to your liking. Once you clone the repo, it's all yours 👍

ykerus avatar Nov 04 '23 17:11 ykerus