我使用的node 版本是 16.11.0,vue 版本是 2.6.11,在 vue template 里使用可选链操作符( ?. )会出现报错: 解决 主要: 删除文件package-lock.json npm i vue@2.7.0 vue-template-compiler@2.7.0