Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

209
Visualizações
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 à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda