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

Many Failed to process errors preventing build #1126

Open
mbbroberg opened this issue May 8, 2024 · 1 comment
Open

Many Failed to process errors preventing build #1126

mbbroberg opened this issue May 8, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@mbbroberg
Copy link

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
@mbbroberg mbbroberg added the bug Something isn't working label May 8, 2024
@robinsving
Copy link

robinsving commented May 17, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants