Why is Typst Preview working, while typst compile fails?

On even patches, tinymist 0.x is equivalent to Typst 0.x. So if your goal is working with 0.13 and tinymist is still on 0.12,you definitely want an odd patch version.

There was also 0.12.19, you can try to “downgrade” to that if 0.12.21 is not ready yet for your editor.