dusionlike / electron-builder-encryptor

simple electron package encryption tool
MIT License
24 stars 7 forks source link

文件地址不存在 #10

Open tangxiaoqi-tangxiao opened 7 months ago

tangxiaoqi-tangxiao commented 7 months ago

ENOENT: no such file or directory, open 'C:\Users\tangx\Desktop\项目\yuelan_electron\yuelan\node_modules.electron-builder-encryptor\encryptor.config.js' failedTask=build stackTrace=Error: ENOENT: no such file or directory, open 'C:\Users\tangx\Desktop\项目\yuelan_electron\yuelan\node_mo image dules.electron-builder-encryptor\encryptor.config.js' image

dusionlike commented 7 months ago

你把package.json的 "type": "module", 删掉试试

tangxiaoqi-tangxiao commented 7 months ago

以后会优化兼容 "type": "module"吗,因为现在前端项目基本上都需要设置 "type": "module"

dusionlike commented 7 months ago

以后会优化兼容 "type": "module"吗,因为现在前端项目基本上都需要设置 "type": "module"

最近几天比较忙,后面有空再看看吧

jiangzx commented 5 months ago

@dusionlike 老兄这个问题什么时候可以fix,我也遇到了这个问题,有偿请教

dusionlike commented 5 months ago

@dusionlike 老兄这个问题什么时候可以fix,我也遇到了这个问题,有偿请教

研究过了,bytenode就不支持 "type": "module",最简单的你package.json去掉这个就行

jiangzx commented 5 months ago

@dusionlike 多谢, 请问这个插件支持 https://github.com/electron-vite/electron-vite-vue 项目吗?

dusionlike commented 5 months ago

@dusionlike 多谢, 请问这个插件支持 https://github.com/electron-vite/electron-vite-vue 项目吗?

以前试过,要配置的地方还是挺多的。或者你可以试下这个 https://cn.electron-vite.org/guide/source-code-protection

bitexuange commented 5 months ago

image 刪除t"type": "module"后,打包成功。打开exe报错

xioaliu9 commented 5 months ago

图像 删除t"type": "module"后,打包成功。打开exe报错

请问这个问题你解决了吗?

se7uh commented 2 months ago

图像 删除t"type": "module"后,打包成功。打开exe报错

请问这个问题你解决了吗?

You need to install mime@3 and @types/mime@3

npm install mime@3 @types/mime@3