Welcome to WuJiGu Developer Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
549 views
in Technique[技术] by (71.8m points)

vue项目android 5.0白屏

用vue搞了个大屏,开发了个安卓程序安装到小米电视上,但是打开后白屏,报错Uncaught SyntaxError: Unexpected identifier,搜索说是安卓浏览器不兼容问题,但是配置了babel不起作用,请问是我配置的有问题吗?
package.json引入了"@vue/cli-plugin-babel": "~4.5.0"
babel.config.js 配置:
`module.exports =?{
presets: [
'@vue/cli-plugin-babel/preset'
]
}`

main.js引入了
`import 'core-js/stable';
import 'regenerator-runtime/runtime';`

image


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

应该是es6语法问题,低版本不兼容;兼容下就好


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to WuJiGu Developer Q&A Community for programmer and developer-Open, Learning and Share
...