webviz icon indicating copy to clipboard operation
webviz copied to clipboard

webviz-core add new route failed

Open Niceyaa opened this issue 2 years ago • 1 comments

scene:I want to package Webviz-core into Electron application, there is a problem with packaging it in doc form, so I want to package it in Webviz-core, but now there is a problem, I need to add some pages in Webviz-core to make the original webviz-core into a secondary page. However, the method of adding Route fails to recognize it now

now i want to add a new page by Route,but it failed:(in webviz-core -> src -> components -> Root.js) const Root = () => { return ( <Provider store={getGlobalStore()}> <ConnectedRouter history={history}> <div className="app-container" key="0"> <ErrorBoundary> <Route path="/" render={({ history: routeHistory }) => <ConnectedApp history={routeHistory} />} /> <Route path="/Home" component={Home} /> </ErrorBoundary> </ConnectedRouter> </Provider> ); };

failed url: http://localhost:8080/Home failed info:Cannot GET /Home

Could you please tell me how to add a new page now? Thank you

Niceyaa avatar Aug 19 '22 01:08 Niceyaa

Check out Foxglove Studio, it is already packaged as an Electron app: https://github.com/foxglove/studio

jtbandes avatar Aug 19 '22 01:08 jtbandes