JavaScript error in main process

Hi, I am trying to build an app with Electron, Webpack, React and Okta. I’ve followed this article Build an Electron App with JavaScript and Authentication | Okta Developer but I keep running into an error stating “A JavaScript error occurred in the main process”

Could you please help me on why this might be?