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

216
Views
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
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!