error: reanimated 2 failed to create a worklet, maybe you forgot to add reanimated’s babel plugin?

This error even happens with a new fresh react-native app (using react-native-reanimated)

Switching to yarn from npm may solve the problem (There is some problem with npm install ??). Still don’t forget cleaning caches:

yarn cache clean
rm -rf node_modules
rm yarn.lock
yarn
cd ios
pod update
pod install

Another possible solution is reverting to the last stable version of react-native-reanimated

"dependencies": {
  "react-native-reanimated": "^1.13.2",
  ...
}


More Articles

How to start a new Github repo from an existing project

Assume that you have a project and you want to track it with Github. Navigate to the project folder,...

codezilla

codezilla

How to check for listening ports in Linux

Here is one of the most popular commands for troubleshooting network or specific application problem...

codezilla

codezilla

How to get octal file permissions from command line?

Sometimes we want to know the octal number representing the permission of a file like 755, 777, 664 ...

codezilla

codezilla