megahertz / electron-log

Simple logging module Electron/Node.js/NW.js application. No dependencies. No complicated configuration.
MIT License
1.32k stars 128 forks source link

Webpack tries to compile electron module in a renderer process #335

Closed megahertz closed 1 year ago

megahertz commented 1 year ago

With electron-react-boilerplate and electron@5 it produces the following error:

Module not found: Error: Can't resolve 'fs' in './node_modules/electron'
 @ ./node_modules/electron-log/src/renderer.js 23:36-64
 @ ./src/renderer/index.tsx 6:0-44 7:0-8