react-native-reanimated: ReferenceError: Can't find variable: _setGlobalConsole, after upgrading to `-rc.2`.

Description

getting the following error after upgrading to 2.0.0-rc.2 from 2.0.0-rc.1

Screenshots

Screen Shot 2021-01-16 at 1 34 20 AM

Steps To Reproduce

  • upgrade to rc.2
  • install the latest rc rc.2

Expected behavior

it should work as before.

Actual behavior

it throws an error ReferenceError: Can't find variable: _setGlobalConsole

Snack or minimal code example

N/A

Package versions

  • React: 16.13.1
  • React Native: 0.63.4
  • React Native Reanimated: ^2.0.0-rc.2
  • NodeJS: v14.15.3

About this issue

  • Original URL
  • State: closed
  • Created 3 years ago
  • Reactions: 17
  • Comments: 36 (6 by maintainers)

Most upvoted comments

  1. delete the ‘node_modules’ folder
  2. run ‘npm cache clean --force’
  3. run ‘npm install’
  4. run ‘npm start --clear-cache’

*I did this and it works for me

it might sound crazy but try creating a new project with npx crna --template with-reanimated2 - reanimated will work in that

@yunesdelivery
The problem turned out to be version incompatibility react-native-reanimated react-native-vision-camera react-native

To make everything work, I use the following versions:

    "react-native": "0.70.10",
    "react-native-reanimated": "^2.12.0",
    "react-native-vision-camera": "^2.15.2",

Yes the issue happens on both android & IOS after upgrading & on fresh projects.

@PedroBern please try rc0(explained here)

@angrypie this is great. Now it is working fine after so much of struggle.

@Yandamuri config is ok. I also went through this steps to clean cache, before noticed my config issue, might be helpful.

hi @a-eid do you want iOS dev job in Tambov company? Please contact t.me/sundaleek