quartz
quartz copied to clipboard
Many `Failed to process` errors preventing build
Describe the bug I'm trying to add my existing Obsidian vault into quartz. After initialization, I continue to have errors on build. The quartz frontmatter parser continues to report issues processing my files.
ERROR
Failed to process `content/Goodread Scraper.md`: end of the stream or a document separator is expected (8:6)
5 | let p = new DOMParser()
6 | let doc = p.parseFromString(page, "te ...
7 | -%>
8 | title: "<% tp.user.goodreads('title', ...
----------^
9 | url: "<% tp.user.goodreads('url', tp, ...
10 | isbn: <% tp.user.goodreads('isbn', tp ...
5 | let p = new DOMParser()
6 | let doc = p.parseFromString(page, "te ...
7 | -%>
8 | title: "<% tp.user.goodreads('title', ...
----------^
9 | url: "<% tp.user.goodreads('url', tp, ...
10 | isbn: <% tp.user.goodreads('isbn', tp ...
at Object.yaml [as parse] (../plugins/transformers/frontmatter.ts:55:35)
at ../plugins/transformers/frontmatter.ts:52:30
To Reproduce Steps to reproduce the behavior:
Two error patterns are observable so far:
- If a filename begins with a plus sign
- If a templater file has a
string:
pattern in its body
Then running a normal build after installation shows the error:
- npx quartz build --serve
Expected behavior A clear and concise description of what you expected to happen.
Build and skip error files.
Desktop (please complete the following information):
- Quartz Version: [e.g. v4.1.2] "4.2.3"
-
node
Version: [e.g. v18.16] v21.7.1 -
npm
version: [e.g. v10.1.0] 10.5.0 - OS: [e.g. iOS] macOS
This is a Frontmatter-with-Templater issue. Presumably the validation should be relaxed a bit.
For now, I just remove the Frontmatter markers temporarily while running quartz
You should ignore template files anyways as it doesn't make sense for Quartz to render these: https://quartz.jzhao.xyz/features/private-pages#ignorepatterns