Undefined is not an object (evaluating 'Component.propsType') - React-Native 0.61.5



 While working with React-Native Android Application sometimes we face this issue saying - 

Undefined is not an object (evaluating 'Component.propsType').


This issue generally occurs when our npm package versions get altered somehow. 


I have faced this error while trying to optimize my package.json. I have tried a lot of option cleaning Build folder, Resetting cache etc. but nothing worked.



Here are the few steps to resolve the error Undefined is not an object (evaluating 'Component.propsType').- 


  1. Make Sure you Reverse all your changes made in your package.json file.
  2. Delete node_modules folder inside your react-native application code
  3. Delete package-lock.json file
  4. Go To Android Studio/Build/Clean and clean the project build
  5. After that do npm install in your react-native project directory
  6. Run npm start --reset-cache to reset bundler cache
  7. After that run react-native run-android 
  8. It will start working now



Comments

Post a Comment