skip to Main Content

My react-native version is the latest 0.71.3. Whenever I start debugging, I get the error console.assert is not a function. Why is this happening and any fix for it?

enter image description here

2

Answers


  1. The issue is very likely related to react-native-reanimated. There is no fix released yet but a patch is available.

    Though I noticed that many other problems arise after fixing this specific issue. I solved all my problems by downgrading a major release, from 3.0.2 to 2.14.4:

    npm install --save [email protected]
    

    I’m confident that this should solve your problem as well.

    Login or Signup to reply.
  2. I try to install

    npm install --save [email protected]
    

    After running Android again, the app can’t open. I have to install react-native-reanimated latest, and the app runs normally.

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search