Compiling templates to Latex

I am trying to use templates in Scrivener like MLA of APA and compile it to Latex file. I opened the file, type nothing and press “compile”. The compiled file gives an error message like this when I am compiling the Latex file:

This happens in both MLA and APA templates, I didn’t test another one. But it seems fine when I tried to compile an empty project. Please tell me how to solve that problem. By the way, I am using MMD3. Thanks.

Moderator note: Locking this thread as it is a cross-post.