question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Reanimated 2 failed to create a worklet

See original GitHub issue

When I import Animated in my file, no matter I use it somewhere or not, every time it says that Reanimated 2 failed to create a worklet, maybe you forgot to add Reanimated's babel plugin?.

My babel.config.js

module.exports = {
  presets: ['module:metro-react-native-babel-preset'],
  plugins: ['react-native-reanimated/plugin'],
};

I’m using ^2.0.0-rc.3 version.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:5
  • Comments:28 (4 by maintainers)

github_iconTop GitHub Comments

13reactions
systemlevelcommented, Mar 2, 2021

yarn start --reset-cache helped in my case on Android.

8reactions
elevivencommented, Mar 5, 2021

npx react-native start --reset-cache solved my issue

Read more comments on GitHub >

github_iconTop Results From Across the Web

Reanimated 2 failed to create a worklet, maybe you forgot to ...
I followed their installation process: React Native Reanimated instalation guide. The error is: Reanimated 2 failed to create a worklet, maybe you forgot...
Read more >
Reanimated 2 failed to create a worklet, maybe you forgot to ...
I put the reanimated plugin on bottom of my plugins array and ran yarn start --reset-cache but still am hitting Reanimated 2 failed...
Read more >
Error: Reanimated 2 failed to create a worklet
(The above is a basic example to recreate the error and solution. Your babel.config.js might be different. As long as the 'react-native-reanimated/plugin' is ......
Read more >
Installation | React Native Reanimated - Software Mansion
After adding the react-native-reanimated/plugin to your project you may encounter a false-positive "Reanimated 2 failed to create a worklet" error.
Read more >
reanimated 2 failed to create a worklet, maybe ... - You.com
ERROR Error : Reanimated 2 failed to create a worklet, maybe you forgot to add Reanimated's babel plugin? Expected behavior. Actual behavior &...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found