Can you try the following:
Christian Sepulveda

Hi Christian,

thank you very much, this does seem to work. However I just now found something different, but it requires ejecting the create-webpack-app. Because once you do you have access to the webpack configuration and all you have to do then is add

`target: ‘electron-renderer’`

to the `module.exports` of your webpack config. See line 26 of this config, that is all I added, and then you can even use regular import statements.