下载后一直抱这个错误
10:39:39 - Building for production...
10:40:36 ERROR Failed to compile with 41 errors2:40:31 AM
10:40:36
10:40:36 error in ./src/components/gem-histogram.base.vue?vue&type=template&id=691572bb&scoped=true
10:40:36
10:40:36 Syntax Error: Unexpected token (1:539)
10:40:36
10:40:36
10:40:36 error in ./src/components/gem-histogramLevel.base.vue?vue&type=template&id=c269a8a8&scoped=true
10:40:36
10:40:36 Syntax Error: Unexpected token (1:609)
10:40:36
10:40:36
10:40:36 error in ./src/views/alarm/analysis/queryAnal/index.vue?vue&type=template&id=01779788&scoped=true
10:40:36
10:40:36 Syntax Error: Unexpected token (1:4985)
10:40:36
10:40:36
10:40:36 error in ./src/views/alarm/notifyquery/index.vue?vue&type=template&id=f0ae091c&scoped=true
10:40:36
10:40:36 Syntax Error: Unexpected token (1:3247)
10:40:36
10:40:36
10:40:36 error in ./src/views/analysis/extreme/index.vue?vue&type=template&id=b77c31f4&scoped=true
10:40:36
10:40:36 Syntax Error: Unexpected token (1:2264)
10:40:36
我的开始的vue版本 要比文中的版本要高一点
{"vue": "2.6.14","vue-template-compiler": "2.6.14"
}
按照上面的 删除package-lock.json和node_modules重新安装之后还是报错
于是我修改了vue的版本 重新下载node_modules 就可以了
{"vue": "2.7.16","vue-template-compiler": "2.7.16"
}