Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

215
Vistas
Problem while using state from React-Redux ___ Property 'cart' does not exist on type 'DefaultRootState' - from a MERN project

the error i am getting as per VS Code is --- Property 'productDetails' does not exist on type 'DefaultRootState'

to more elaborate the problem as follows, I have tried the solutions given on the page, however none worked for me. so my problem is as follows:

//While I am using 

const productList = useSelector((state) => state.productList)  

//I am getting that property does not exist. the codes can be seen from the below images

this is the store.js file

And this is the file where I am trying to use > const productList = useSelector((state) => state.productList

the error can be clearly seen in the second image Property 'cart' does not exist on type 'DefaultRootState'.ts(2339)

this is a MERN Project.

about 4 years ago · Juan Pablo Isaza
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda