Skip to content

Commit

Permalink
docs📝: 新增vue-cli项目报错;
Browse files Browse the repository at this point in the history
  • Loading branch information
simply-none committed Oct 12, 2022
1 parent 52da2e5 commit bb4d5e9
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions usage-project/vue-cli项目启动报错汇总.md
Original file line number Diff line number Diff line change
Expand Up @@ -77,3 +77,10 @@ module.exports = {
原因:由于vue升级为2.7.x导致vue及vue-template-compiler版本对element-ui解析策略不一致造成的错误

解决方法,固定vue及vue-template-compiler的版本号为`~2.6.0`

## 报错10:Unexpected token '<'

问题:当刷新页面后,页面空白,出现该错误

原因:
1. 有可能是`vue.config.js`配置出现了问题,比如publicPath配置错误,当为生产环境时,应该为`./`,当为开发环境时,应为`/`

0 comments on commit bb4d5e9

Please sign in to comment.