electron vue打包遇到的坑

创建electron-vue请看上一篇。

cnpm install之后,运行npm run dev是正常的,但是npm run build时,遇到了几个错误。

Identifier ‘tasks’ has already been declared

Identifier ‘tasks’ has already been declared

Multispinner is not defined

cnpm i  multispinner --save
const Multispinner = require('multispinner')
electron vue打包遇到的坑

完成后重新npm run build。

我这边还遇到了其他错误,没做记录,但是把electron-builder版本改为22.13.1,就解决了。

electron vue打包遇到的坑

打包时还遇到了下载github文件慢的问题,手动从github上下载了文件放到了如下路径

文件路径

解决问题参考了:

https://www.cnblogs.com/silverbeats/p/14945112.html

http://bbs.itying.com/topic/613f091b944cd313883a06ed

发博客只是方便up主记忆,仅供参考~~

类似文章

发表回复

您的电子邮箱地址不会被公开。 必填项已用*标注