Score:0

Nginx/Vue - Uncaught SyntaxError: expected expression, got '<' on line

na flag

When I try to serve my Vue app with Nginx, I get an Uncaught SyntaxError: expected expression, got '<' error on the <!DOCTYPE HTML> line of my index.html file, leading to scripts not loading and nothing being displayed.

Here's the conf file for that app :

server {
    listen 80;
    listen [::]:80;
    server_name xx.xxx.xxx.xx;
        location / {
        root path/to/vue/dist/folder;
        index index.html;
        try_files $uri $uri/ /index.html;
    }
}

Everything else is default.

How do I correct that error ?

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.