vue cli - Uncaught SyntaxError: Unexpected token <

前端 未结 14 2244
说谎
说谎 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:06

    I got this error when I tried to run vue ui. This happened when I installed vue cli 2.0 along with 3.0.

    So i uninstalled both and installed 3.0 and then:

    All I had to do was a empty cache and hard reload in chrome.

    Open up the developer tools by pressing f12 and then click and hold the refresh button then select empty cash and hard reload.

    I am not sure if this is related to your specific issue.

提交回复
热议问题