报错信息: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
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-packager 打包的吧?这个警告的字面意思就是说使用其回调函数方式的调用已经要被废弃了,应该使用其 Promise 形式。
electron-vue 还没适配更新 packager 版本,你忽略它就行。如果就是看它不爽,换 electron-builder 打包吧。
GitHub 相关 Issue:https://github.com/SimulatedG...
如果你是不能正常打包,或打包后程序不能正常运行,那跟这条警告无关。
2.1m questions
2.1m answers
62 comments
56.7k users