Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

236
Views
El 'Proveedor' no se puede utilizar como un componente JSX. Su tipo de instancia 'Provider<AnyAction>' no es un elemento JSX válido. TS2786

Hace que la tienda Redux esté disponible para las llamadas connect() en la jerarquía de componentes a continuación.

El 'Proveedor' no se puede utilizar como un componente JSX. Su tipo de instancia 'Proveedor' no es un elemento JSX válido. Los tipos devueltos por 'render()' son incompatibles entre estos tipos. El tipo 'React.ReactNode' no se puede asignar al tipo 'import("C:/Users/Nilay/Desktop/nilay/src/pages/Home/Reel/node_modules/@types/react/index").ReactNode'. El tipo '{}' no se puede asignar al tipo 'ReactNode'.ts(2786)

¿Alguien puede decir cómo solucionar esto? He intentado instalar npm nuevamente. Mi versión de nodo es 18plus.

imagen aquí

 import React from "react"; import ReactDOM from "react-dom"; import "./index.css"; import App from "./App"; import { store } from "./app/store"; import { Provider } from "react-redux"; import * as serviceWorker from "./serviceWorker"; import { BrowserRouter as Router } from "react-router-dom"; import { ApolloProvider } from "@apollo/client"; import { apolloClient } from "./utils/index"; ReactDOM.render( <React.StrictMode> <Router> <ApolloProvider client={apolloClient}> <Provider store={store}> <App /> </Provider> </ApolloProvider> </Router> </React.StrictMode>, document.getElementById("root") ); serviceWorker.unregister();
about 4 years ago · Santiago Trujillo
1 answers
Answer question

0

Parece un problema de @types/react con múltiples versiones. Intente desinstalar react-redux y reaccione (compruebe que se eliminaron las dependencias) e instálelo nuevamente.

También intente instalar @types/react, se instala a través de dependencias.

Algunas soluciones se pueden encontrar aquí: https://github.com/facebook/react/issues/24304#issuecomment-1094565891

about 4 years ago · Santiago Trujillo Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!