wppconnect-team / wpp-docker

Crie facilmente imagens do Docker com diferentes versões/combinações de linguagens e dependências comuns, para uso no WPPConnect.
Apache License 2.0
124 stars 63 forks source link

ERROR in src/routes/dashboad.tsx #7

Closed tiagojulianoferreira closed 2 years ago

tiagojulianoferreira commented 2 years ago

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:

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>
bgastaldi commented 2 years ago

Bom dia, Para esse tipo de situações utilizamos o discord. Coloque sua dúvida lá https://discord.gg/JU5JGGKGNG