1.项目打包上线报错:Uncaught syntaxError: Unexpected token ‘<’
2.在package.json文件中修改publicPath,publicPath是部署应用包时的基本 URL,如果应用被部署在一个子路径上,就需要用这个选项指定这个子路径。
例如,应用被部署在 https://chuchayishe.com/customer,则设置 publicPath 为 /customer。
项目报错:Uncaught syntaxError: Unexpected token ‘<‘,解决方法修改publicPath
于 2023-08-16 10:58:17 首次发布