secure-electron-template icon indicating copy to clipboard operation
secure-electron-template copied to clipboard

Browser route not working from index.tsx file by npm run prod

Open snahasish89 opened this issue 1 year ago • 0 comments

Please provide the following information:

Operating system: Windows 10 Version of the template: 22.0.0

Below are the code for index.tsx

const container = document.getElementById("target")!; const root = createRoot(container); root.render( <BrowserRouter> <Suspense fallback={<Loading/>}> <Routes> <Route path='/' element={<AuthCode/>} /> <Route path="/login" element={<Login/>}/> </Routes> </Suspense> </BrowserRouter> );

Inside AuthCode.tsx, only one text box are there.

But no UI opening if I run npm run prod but it is running fine by npm run dev

Please suggest

snahasish89 avatar May 30 '23 00:05 snahasish89