No visible cause for “Unexpected token ILLEGAL”

后端 未结 11 2229
轻奢々
轻奢々 2020-11-22 00:09

I\'m getting this JavaScript error on my console:

Uncaught SyntaxError: Unexpected token ILLEGAL

This is my code:

11条回答
  •  清酒与你
    2020-11-22 01:02

    If you are running a nginx + uwsgi setup vagrant then the main problem is the Virtual box bug with send file as mentioned in some of the answers. However to resolve it you have to disable sendfile in both nginx and uwsgi.

    1. In nginx.conf sendfile off

    2. uwsgi application / config --disable-sendfile

提交回复
热议问题