saltyshiomix / nextron

⚡ Next.js + Electron ⚡
https://npm.im/nextron
MIT License
3.69k stars 215 forks source link

Module not found: Can't resolve 'fs' #443

Closed CyberBishop closed 4 months ago

CyberBishop commented 4 months ago

nextron build --linux

[nextron] Clearing previous builds [nextron] Building renderer process info - Linting and checking validity of types
info - Creating an optimized production build
Failed to compile.

../node_modules/electron/index.js Module not found: Can't resolve 'fs' in '/home/.../myapp/node_modules/electron'

Import trace for requested module: ../node_modules/electron/index.js

Build failed because of webpack errors

Cannot build electron packages: Error: Command failed with exit code 1: next build /home/.../myapp/renderer

Link to project repo: https://github.com/CyberBishop/leshpq