Building an Electron application with create-react-app
Christian Sepulveda

Hey there,

thanks for your tutorial! I am running into difficulties though. It seems the webpack process is separated from the node process (is what I guess). I made a very small change to your repository to demonstrate: If I use fs.readdir in App.js I will get the error

Uncaught TypeError: _fs2.default.readdir is not a function

See for yourself

All I did was import fs and run fs.readdir in the constructor.

Like what you read? Give Lukas Bombach a round of applause.

From a quick cheer to a standing ovation, clap to show how much you enjoyed this story.