electron-vue报错Object.fromEntries is not a function
electron-vue脚手架搭建的项目,运行后报错:Object.fromEntries is not a function
项目目录
编辑
前端控制台打印错误:
解决办法:安装polyfill-object.fromentries,在项目根目录执行命令
npm i polyfill-object.fromentries
然后再
引入
import 'polyfill-object.fromentries';