diego3g / electron-typescript-react

:electron: An Electron boilerplate including TypeScript, React, Jest and ESLint.
1.45k stars 295 forks source link

getting white screen after opening app.exe. #49

Closed virinchi-manepalli-trysolvio closed 3 years ago

virinchi-manepalli-trysolvio commented 3 years ago

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)

virinchi-manepalli-trysolvio commented 3 years ago

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>

  `
virinchi-manepalli-trysolvio commented 3 years ago

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