vue项目中报错:syntaxerror: Unterminated string constant解决

syntaxerror: Unterminated string constant
解决办法: 升级vue-template-compiler

"vue-template-compiler": "^2.6.12""vue": "2.6.12",

同时保证和vue是同一版本,否则报错:
vue-template-compiler must be installed as a peer dependency, or a compatibl

你可能感兴趣的:(vue,js)