### Discussed in https://github.com/quarto-dev/quarto-cli/discussions/6001

<div type='discussions-op-text'>

<sup>Originally posted by **thegilpatrick** June 21, 2023</sup>
### Description

Updated Quarto to version 1.4.161 and started getting errors when trying to preview this old QMD file.

Here is the [QMD file](https://github.com/thegilpatrick/Blog/blob/main/posts/R-TidyCensus/index.qmd)

Error in Terminal:
```
PS C:\Users\16615\OneDrive\Desktop\Blog> quarto preview c:/Users/16615/OneDrive/Desktop/Blog/posts/R-TidyCensus/index.qmd --no-browser --no-watch-inputs
[1/2] posts\R-TidyCensus\index.qmd


processing file: index.qmd

output file: index.knit.md

Error running filter C:/Users/16615/AppData/Local/Programs/Quarto/share/filters/main.lua:
...615/AppData/Local/Programs/Quarto/share/filters/main.lua:4247: attempt to call a nil value (global 'stringifyTokens')
stack traceback:
        ...615/AppData/Local/Programs/Quarto/share/filters/main.lua:4283: in upvalue 'stringifyTokens'
        ...615/AppData/Local/Programs/Quarto/share/filters/main.lua:4321: in function <...615/AppData/Local/Programs/Quarto/share/filters/main.lua:4296>
        (...tail calls...)
        [C]: in ?
        [C]: in method 'walk'
        ...615/AppData/Local/Programs/Quarto/share/filters/main.lua:98: in function 'run_emulated_filter'
        ...615/AppData/Local/Programs/Quarto/share/filters/main.lua:566: in local 'callback'
        ...615/AppData/Local/Programs/Quarto/share/filters/main.lua:577: in upvalue 'run_emulated_filter_chain'
        ...615/AppData/Local/Programs/Quarto/share/filters/main.lua:610: in function <...615/AppData/Local/Programs/Quarto/share/filters/main.lua:607>  
stack traceback:
        ...615/AppData/Local/Programs/Quarto/share/filters/main.lua:98: in function 'run_emulated_filter'
        ...615/AppData/Local/Programs/Quarto/share/filters/main.lua:566: in local 'callback'
        ...615/AppData/Local/Programs/Quarto/share/filters/main.lua:577: in upvalue 'run_emulated_filter_chain'
        ...615/AppData/Local/Programs/Quarto/share/filters/main.lua:610: in function <...615/AppData/Local/Programs/Quarto/share/filters/main.lua:607>
```</div>
cscheid
2023-06-21T16:09:45Z
cscheid
observable-js
v1.4
closed
Updated Quarto and now getting errors when I preview an old QMD file
https://github.com/quarto-dev/quarto-cli/issues/6002