Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Error: Cannot resolve module 'fs' with electron and js #3012
I'm looking a way to working with electron (as node module ) and webpack, but we have some bug with fs module error with it.
We have some errore with fs not found : Error: Cannot resolve module 'fs'
Anyone can help us to config webpack for this type of use ?
You can reproduce it with basic config for webpack and electron.
the electron entry :
And some js for working :
Thank's a lot for your help
referenced this issue
Apr 6, 2017
I'm trying to get Monaco to work in electron and even though I set the target to electron in webpack 4, I still get an error for a wrong import of fs inside the typescript language service. Could this be a Babel issue or does setting the target to electron only fix fs inside electron? Thanks for you help!