Subscribe on changes!

在Android9的浏览器下出现Unexpected token '?'

avatar
Jul 28th 2021

Version

3.1.5

Steps to reproduce

只要代码中出现??语法就会导致vue无法正常编译报错

What is expected?

babel编译到es2015不应该出现问题 image

What is actually happening?

编译报错

avatar
Jul 28th 2021

应该是vuecli5下面的bug换个地方提

avatar
Jul 28th 2021

@ht-sauce 这的确不是 vue 的 bug。请参照: https://babeljs.io/docs/en/babel-plugin-proposal-nullish-coalescing-operator