vue cli - Uncaught SyntaxError: Unexpected token <

前端 未结 14 2189
说谎
说谎 2020-12-31 03:39

I create my project with vue-cli 3.0. Initially it runs ok. But after I -c then npm run serve again, it keep throwing erro

14条回答
  •  伪装坚强ぢ
    2020-12-31 04:07

    You might have used "./" prefix for Relative path in src attributes of your index.html, Just replace it with "<%= BASE_URL %>" and it will work fine.

    //
    
                                     
                  
提交回复
热议问题