electron-vue 报错 Object.fromEntries is not a function

2026-09-06 99 浏览 0 评论

electron-vue 脚手架搭建的项目,运行后报错:Object.fromEntries is not a function,一般都试兼容问题。

前端控制台打印错误

解决办法:安装 polyfill-object.fromentries,在项目根目录执行命令

npm i polyfill-object.fromentries

然后在 dev-client.js 引入即可

import 'polyfill-object.fromentries';


发布评论

发布评论前请先 登录
0 评论
点赞
收藏

评论列表 0

暂无评论