DEV Community

Shwetank Singh
Shwetank Singh

Posted on

Unexpected token < error, when I am making angular 4 app live

Whenever I am building the angular 4 app it's building fine and then I copy the whole build folder and paste it on /var/www/html file and I have already change the default file which is present at /etc/nginx/sites-available
Could anyone tell me why it's happening on building it's not giving any error.
I am using nginx as my webserver.
Can anyone help resolving it?

Top comments (1)

Collapse
 
jerintk profile image
Jerin Kuriakose • Edited

Does the build folder, which you copied, has an index.html in the path /var/www/html/ ?