Hi all!
I have a project that currently contains the following items:
- .RProj file
- R script
- Shiny App Code
- qmd File
I was getting a consistent error of:
ERROR: YAMLException: expected a single document in the stream, but found more
Stack trace:
at load$1 (file:///Applications/quarto/bin/quarto.js:14793:11)
at buildJsYamlAnnotation (file:///Applications/quarto/bin/quarto.js:15565:5)
at readAnnotatedYamlFromMappedString (file:///Applications/quarto/bin/quarto.js:15465:16)
at readAndValidateYamlFromMappedString (file:///Applications/quarto/bin/quarto.js:15829:30)
at readAndValidateYamlFromFile (file:///Applications/quarto/bin/quarto.js:20455:50)
at file:///Applications/quarto/bin/quarto.js:80972:32
at projectContext (file:///Applications/quarto/bin/quarto.js:80754:32)
at async render (file:///Applications/quarto/bin/quarto.js:90217:19)
at async Command.actionHandler (file:///Applications/quarto/bin/quarto.js:107928:25)
at async Command.execute (file:///Applications/quarto/bin/quarto.js:8086:13)
at async Command.parseCommand (file:///Applications/quarto/bin/quarto.js:7976:20)
I've since removed all code and left only the following text which still results in the error message:
---
title: "My document"
---
Hello
I have checked all the other files and there are no other instances of ---
in the rest of the files. When I create a project meant for a website, the files render fine. It is only when I mix and match that I get the error. The error also persists if I declare the format as html or leave it as the default qmd text.
Any help would be appreciated!
Best,
Dave