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

主进程使用koa,打包后exe无法打开 #724

Open
4 tasks done
zephyr-peak opened this issue Feb 28, 2025 · 0 comments
Open
4 tasks done

主进程使用koa,打包后exe无法打开 #724

zephyr-peak opened this issue Feb 28, 2025 · 0 comments

Comments

@zephyr-peak
Copy link

Describe the bug

"koa": "^2.16.0",
需要在主进程启动时,启动一个koa服务,主进程中无论是import或require引入koa,npm run dev都可以正常使用,npm run build:win也可以正常打包,双击exe之后提示缺少依赖,该依赖代码中并未使用,安装后报同样错误,请问这个需要配置哪里
electron-build.yml

Image

Image

Electron-Vite Version

2.3.0

Electron Version

31.0.2

Vite Version

5.3.1

Validations

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

1 participant