Hi, great template! Quick question. Do you know I'm seeing this?
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
https://share.zight.com/6quwGb2Q
https://share.zight.com/nOuQbKkD
Is there a scripts folder or CSS files?
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
This indeed all happens with some Javascript code in a scripts folder:
(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
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
- Slides Preview https://share.zight.com/eDu0n0d7
- Template for a daily note 2023-11-02, Thu 2 Nov.pdf
- User Scripts Function Folder Location https://share.zight.com/DOuPkr0y
- Habits Page https://share.zight.com/eDu0n7p9
- Habits Config https://share.zight.com/QwuBjdy8
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 👍