In development the filesystem object can be loaded. When packaged and run the file system object can not be found.
To repeat the problem do the following
- Clone repository
- yarn
- yarn build
- yarn electron
In the console the fs object will be displayed
- yarn package
- yarn exe
The same electron project is run. This time it displays the following error.
Uncaught Error: Cannot find module 'fs-extra'