Closed johannesjo closed 6 months ago
I think you import this lib as 'electron-log' instead of 'electron-log/main'
I think you import this lib as 'electron-log' instead of 'electron-log/main'
Just tried using
import { initialize } from 'electron-log/main';
and import { initialize } from 'electron-log';
There is no difference in the outcome unfortunately. I am using the latest version (5.0.1
) of electron log.
Named import isn't supported since initialize
is an instance method.
Thank you for the explanation! That solved the problem!
I get an error with electron 28.0.0, when using the initialize function in the main process:
Originally posted by @johannesjo in https://github.com/megahertz/electron-log/issues/369#issuecomment-1859164807