Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

无法打包 #4

Closed
chinajuns opened this issue Apr 3, 2022 · 9 comments
Closed

无法打包 #4

chinajuns opened this issue Apr 3, 2022 · 9 comments

Comments

@chinajuns
Copy link

chinajuns commented Apr 3, 2022

node:16.13.1
Mac 或者是Windows 都无法打包(yarn\npm run electron:build:win)
提示如下错误
D:\electron_project\electron-admin-antd-react\node_modules\app-builder-lib\src\asar\asarFileChecker.ts:7
return new Error(${messagePrefix} "${relativeFile}" in the "${asarFile}" ${text})
^
Error: Application entry file "main.js" in the "D:\electron_project\electron-admin-antd-react\dist_electron\win-ia32-unpacked\resources\app.asar" does not exist. Seems like a wrong configuration.

@lqsong
Copy link
Owner

lqsong commented Apr 6, 2022

开发模式可以运行吗

@xinchanghao
Copy link
Contributor

@chinajuns @lqsong 请问打包问题解决了吗?这个问题必现的

@lqsong
Copy link
Owner

lqsong commented Sep 6, 2022

@chinajuns @lqsong 请问打包问题解决了吗?这个问题必现的

你这边不能打包吗?

@xinchanghao
Copy link
Contributor

@chinajuns @lqsong 请问打包问题解决了吗?这个问题必现的

你这边不能打包吗?

是的,打包会报错,找不到入口文件!你那儿可以打包?我看别的issue里提的是同样的问题。

@lqsong
Copy link
Owner

lqsong commented Sep 6, 2022

@chinajuns @lqsong 请问打包问题解决了吗?这个问题必现的

你这边不能打包吗?

是的,打包会报错,找不到入口文件!你那儿可以打包?我看别的issue里提的是同样的问题。

版本你看下,这个项目没有锁定版本,你吧包的版本都锁定下,重新安装
packge.json前面的 ^删掉重新按照,因为新的版本有问题

@xinchanghao
Copy link
Contributor

@chinajuns @lqsong 请问打包问题解决了吗?这个问题必现的

你这边不能打包吗?

是的,打包会报错,找不到入口文件!你那儿可以打包?我看别的issue里提的是同样的问题。

版本你看下,这个项目没有锁定版本,你吧包的版本都锁定下,重新安装 把packge.json前面的 ^删掉重新按照,因为新的版本有问题

锁版也不行,一样的报错,
image

@xinchanghao
Copy link
Contributor

@lqsong 老哥,你那边可以打包吗?

@lqsong
Copy link
Owner

lqsong commented Sep 6, 2022

@lqsong 老哥,你那边可以打包吗?

可以,晚上我在试试吧

@xinchanghao
Copy link
Contributor

@lqsong 老哥,你那边可以打包吗?

可以,晚上我在试试吧

好的,感谢

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants