Error using Quarto to render a docx

Can you share the YAML header you use to get this error ? I am suprised that create_output_format() is called for a Quarto document ?

Running the default template for Quarto document in the IDE works for me

---
title: "Untitled"
format: docx
editor: visual
---

## Quarto

Quarto enables you to weave together content and executable code into a finished document. To learn more about Quarto see <https://quarto.org>.

## Running Code

When you click the **Render** button a document will be generated that includes both content and the output of embedded code. You can embed code like this:

```{r}
1 + 1
```

You can add options to executable code like this

```{r}
#| echo: false
2 * 2
```

The `echo: false` option disables the printing of code (only output is displayed).