Electron setAsDefaultClientProtocol Unable to compile TypeScript when app is redirected to
I’m attempting to register a protocol to my electron application. My application is fork based on electron-react-boilerplate. I’m attempting to integrate Azure OAuth into my application and have been following MSAL’s ElectronSystemBrowserTestApp example. I am successful in opening the authentication window in the browser, which returns the authorization response code which is then intercepted by the CustomLoopbackClient,caches the token, opens the browser to a success template that then redirects to my custom protocol via a script. This is all exemplified in the ElectronSystemBrowserTestApp code. However, at this step electron throws the following error: