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
252 views
in Technique[技术] by (71.8m points)

electrom打包报错WARNING: The callback-based ....

报错信息:WARNING: The callback-based version of packager() is deprecated and will be removed in a future major version, please convert to the Promise version or use the nodeify module.查了资料没查不到啥,请问有人遇到过吗,用的electron-vue


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

1 Answer

0 votes
by (71.8m points)

这不是报错,这就是个警告。

你用的 electron-packager 打包的吧?这个警告的字面意思就是说使用其回调函数方式的调用已经要被废弃了,应该使用其 Promise 形式。

electron-vue 还没适配更新 packager 版本,你忽略它就行。如果就是看它不爽,换 electron-builder 打包吧。

GitHub 相关 Issue:https://github.com/SimulatedG...

如果你是不能正常打包,或打包后程序不能正常运行,那跟这条警告无关。


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