EXPO 45 BETA...Reanimated 2 failed to create a worklet, maybe you forgot to add Reanimated's babel plugin?

Anyone else get this error and have a way to solve it???

My app uses react navigation v5 and thus react-native-reanimated 2. Getting the following error on ios/android upon start:

Error: Requiring module “node_modules/react-native-reanimated/src/Animated.js”, which threw an exception: Error: Reanimated 2 failed to create a worklet, maybe you forgot to add Reanimated’s babel plugin?
at node_modules/react-native/Libraries/Core/ExceptionsManager.js:95:4 in reportException
at node_modules/react-native/Libraries/Core/ExceptionsManager.js:141:19 in handleException
at node_modules/react-native/Libraries/Core/setUpErrorHandling.js:24:6 in handleError
at node_modules/@react-native/polyfills/error-guard.js:49:36 in ErrorUtils.reportFatalError
at node_modules/metro-runtime/src/polyfills/require.js:203:6 in guardedLoadModule
at in global code

Did you add the babel plugin config as described here? If you have, please try clearing your cache by running expo start -c.

Is that a new requirement with expo 45? If so, why?

no, the babel plug-in has always been required for reanimated 2 :slight_smile: edit: although it is possible, depending on which version you used before, that reanimated 2 didn’t enforce this if you weren’t using the reanimated 2 api. it does now. you can learn more about the plug-in on the reanimated docs

1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.