问题描述:npm run dev 没报错。是可以正常运行的,

       npm run build 过程也没报错,

       但是打开dist   index.html  就报错了

   错误内容:

             webpack 打包后 Uncaught SyntaxError: Unexpected token <

   

    解决方法:

        1.    npm run build  改成 cnpm run build 

 

 

         2. webpack 打包后 Uncaught SyntaxError: Unexpected token <

          webpack 打包后 Uncaught SyntaxError: Unexpected token <

          这个地方加个点。

 

 

    ps:是不是很简单,具体是什么原因,我也不清楚,但是浪费了我好几天时间,好气(`ヘ´)=3

 

相关文章:

  • 2021-06-21
  • 2022-12-23
  • 2022-12-23
  • 2021-08-30
猜你喜欢
  • 2021-12-25
  • 2021-06-26
  • 2021-03-30
  • 2021-10-18
  • 2021-09-02
  • 2021-04-19
相关资源
相似解决方案