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

bytecodePlugin not work in monorepo #128

Closed
4 tasks done
king514jy opened this issue Mar 9, 2023 · 2 comments
Closed
4 tasks done

bytecodePlugin not work in monorepo #128

king514jy opened this issue Mar 9, 2023 · 2 comments
Labels
bug Something isn't working

Comments

@king514jy
Copy link

Describe the bug

`Error: node:internal/modules/cjs/loader:966
throw err;
^

Error: Cannot find module 'E:\project\LedfinH5\ledfin-h5-editor\client\node_modules\electron-vite\bin\electron-bytecode.js'
at Module._resolveFilename (node:internal/modules/cjs/loader:963:15)
at Module._load (node:internal/modules/cjs/loader:811:27)
at f._load (node:electron/js2c/asar_bundle:2:13330)
at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:81:12)
at node:internal/main/run_main_module:17:47 {
code: 'MODULE_NOT_FOUND',
requireStack: []
}

node:events:505
throw er; // Unhandled 'error' event
^

Error: write EOF
at WriteWrap.onWriteComplete [as oncomplete] (node:internal/stream_base_commons:94:16)
Emitted 'error' event on Socket instance at:
at emitErrorNT (node:internal/streams/destroy:157:8)
at emitErrorCloseNT (node:internal/streams/destroy:122:3)
at processTicksAndRejections (node:internal/process/task_queues:83:21) {
errno: -4095,
code: 'EOF',
syscall: 'write'
}
`
项目在pnpm workspace下。
测试环境和正常打包都是正常。
使用bytecodePlugin后报错,报错信息能不能输出更详细点,现在有点不知道怎么处理

Electron-Vite Version

1.0.19

Electron Version

22.3.2

Vite Version

4.0.1

Validations

@king514jy king514jy added the bug Something isn't working label Mar 9, 2023
@alex8088
Copy link
Owner

alex8088 commented Mar 9, 2023

monorepo 下,在root安装,查找模块有问题,待下修复,可在子项目中安装electron-vite

@alex8088 alex8088 changed the title Cannot find module bytecodePlugin not work in monorepo Mar 9, 2023
@alex8088
Copy link
Owner

new ver 1.0.20 is out!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants