Executo todos os passos para buildar e subir com Docker o projeto docker-server-front seguindo o video tutorial mas ao tentar navegar, aparentemente o Nginx direciona corretamente pro frontend, porém a página fica em branco.
Do docker logs -f wppconnect-front recebo os seguintes erros:
webpack 5.65.0 compiled with 2 errors and 2 warnings in 1325 ms
ERROR in src/routes/dashboad.tsx:16:17
TS2305: Module '"react-router-dom"' has no exported member 'Switch'.
14 | * limitations under the License.
15 | */
> 16 | import { Route, Switch } from "react-router-dom";
| ^^^^^^
17 | import SendMessagePage from "../pages/ChatPage";
18 | import ContactsPage from "../pages/Contacts";
19 | import Sidebar from "../components/Sidebar";
ERROR in src/routes/dashboad.tsx:29:33
TS2322: Type '{ path: string; component: () => Element; }' is not assignable to type 'IntrinsicAttributes & (PathRouteProps | LayoutRouteProps | IndexRouteProps)'.
Property 'component' does not exist on type 'IntrinsicAttributes & (PathRouteProps | LayoutRouteProps | IndexRouteProps)'.
27 | <DrawerProvider>
28 | <DrawerLeft menuContent={<Sidebar />}>
> 29 | <Route path="/chat" component={SendMessagePage} />
| ^^^^^^^^^
30 | <Route path="/contatos" component={ContactsPage} />
31 | <Route path="/grupo" component={GroupPage} />
32 | </DrawerLeft>
ERROR in src/routes/dashboad.tsx:30:37
TS2322: Type '{ path: string; component: () => Element; }' is not assignable to type 'IntrinsicAttributes & (PathRouteProps | LayoutRouteProps | IndexRouteProps)'.
Property 'component' does not exist on type 'IntrinsicAttributes & (PathRouteProps | LayoutRouteProps | IndexRouteProps)'.
28 | <DrawerLeft menuContent={<Sidebar />}>
29 | <Route path="/chat" component={SendMessagePage} />
> 30 | <Route path="/contatos" component={ContactsPage} />
| ^^^^^^^^^
31 | <Route path="/grupo" component={GroupPage} />
32 | </DrawerLeft>
33 | </DrawerProvider>
ERROR in src/routes/dashboad.tsx:31:34
TS2322: Type '{ path: string; component: () => Element; }' is not assignable to type 'IntrinsicAttributes & (PathRouteProps | LayoutRouteProps | IndexRouteProps)'.
Property 'component' does not exist on type 'IntrinsicAttributes & (PathRouteProps | LayoutRouteProps | IndexRouteProps)'.
29 | <Route path="/chat" component={SendMessagePage} />
30 | <Route path="/contatos" component={ContactsPage} />
> 31 | <Route path="/grupo" component={GroupPage} />
| ^^^^^^^^^
32 | </DrawerLeft>
33 | </DrawerProvider>
34 | </Switch>
Olá!
Executo todos os passos para buildar e subir com Docker o projeto docker-server-front seguindo o video tutorial mas ao tentar navegar, aparentemente o Nginx direciona corretamente pro frontend, porém a página fica em branco.
Do docker logs -f wppconnect-front recebo os seguintes erros: