-
-
Notifications
You must be signed in to change notification settings - Fork 193
Open
Description
Describe the bug
When trying to call electron-log from a Node worker, I get this error:
TypeError: Cannot read properties of undefined (reading 'exports')
at cjsPreparseModuleExports (node:internal/modules/esm/translators:295:81)
at createCJSModuleWrap (node:internal/modules/esm/translators:187:35)
at ModuleLoader.<anonymous> (node:internal/modules/esm/translators:247:10)
at #translate (node:internal/modules/esm/loader:534:12)
at ModuleLoader.loadAndTranslate (node:internal/modules/esm/loader:581:27)
Versions:
- electron-log: 5.4.3
Additional context:
- running in dev mode
- worker created using
?nodeWorker
import from electron-vite.
The electron-log developer says he can't do much and should be a bundling issue (see issue on electron-log project), that's why I'm creating an issue here.
Electron-Vite Version
3.1.0
Electron Version
36.5.0
Vite Version
6.3.5
Validations
- Follow the Code of Conduct.
- Read the Contributing Guidelines.
- Read the docs.
- Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
Metadata
Metadata
Assignees
Labels
No labels