diego3g/electron-typescript-react

getting white screen after opening app.exe.

Closed this issue · 2 comments

everything is working fine in development mode.
but when I try to open the installer, I m getting a white screen,

I did yarn run package for generating app installer,

Screenshot (253)

is this issue came because of wrapping all components inside BrowerRouter? do I need to use HashRouter instead?

        <BrowserRouter>
          <Switch>
            <Route path="/" component={Home} exact />
            <Route path="/login" component={Login} />
            <Route path="/capture/:id" component={Capture} />
         
          </Switch>
        </BrowserRouter>

  `

Browser Window won't work in production mode, I replaced that with HashRouter.