vue cli - Uncaught SyntaxError: Unexpected token <

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

    I assume you are using the same console window that you used for vue ui or vue create to start the project?

    Then try to open a new console instance and run your project in it.

    In my case it worked and the problem was a overwriten enviroment variable in the first console.

    Wish you luck!

提交回复
热议问题