-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Reanimated 2 failed to create a worklet, maybe you forgot to add Reanimated's babel plugin? #1875
Comments
Issue validatorThe issue is valid! |
Hey @Anuj-Raghuvanshi |
this seems to be a completely other issue - what npm version are you on? |
@Anuj-Raghuvanshi for now |
If my example doesn't work for you, most probably this is a cache issue. Try something like this:
|
I am also facing I tried all the suggested steps above (using ios, haven't tried other platforms) Package versions: I see this issue posted on various forums over the past month. I've tried all of the promising fixes, but no dice. |
Any updates on this fix? I haven't been able to resolve on my own. Similar to @scottmcconnell5, I have also tried the steps above with no luck. Seems like this issue has been persistent for a little while, is there anything I can do to help resolution? |
I'm also facing the same issue referred by @scottmcconnell5. Everything is working fine with Package versions:
|
I tried to reproduce this issue but It works for me :/ Is it possible to prepare an example repo with this issue so I can easily reproduce it? @16francej or @LuisRego could you help? |
Same issue with me on
Did try resetting yarn cache and removing the modules and reinstalling multiple times, Not working. |
@surajj2223 Could you show me your |
@piaskowyk |
I could solve this by correctly putting in the
I was putting the reanimated plugin on top of plugins array, putting it at the last as mentioned in the docs resolved the issue for me. Also, after correctly configuring the |
@fortezhuo Thanks a lot, I'll check it as soon as possible. |
I put the reanimated plugin on bottom of my plugins array and ran |
I can't provide a reproduction, but we have a pretty big app which we want to migrate from REA1 to REA2. After following installation steps, all good on Android, but on iOS it throws error as soon as trying to use any of REA2 functionality: Tried both REA |
Have you tried |
I just accidentally put the plugin on the wrong line, take a look at
then restart the bundler using |
@piaskowyk any updates on a fix for this issue? I'd be happy to help in any way possible |
you save my time bro huhuhuhu |
I was getting this error after moving the project directory to another location. If, after react-native init, you do not rename the project and do not move it, there is no such error. |
I have the same problem after upgrading to v2 (both 2. and 2.0.1). I will just continue to use v1 until things are sorted out. I am using NPM and was following the instructions mentioned on the website and in this thread exactly. |
I'm not believing that I so stupid 😄 Thanks! |
This helped me, working fine now 🚀 |
re-animated is the only native lib that requires all those complicated steps to get it to work between minor version increases/decrease. Can anyone explain why that is? A simple re-install should invalidate the former pod and compiled binary code, shouldn't it? |
If "expo start --reset-cache" does not work, use "expo start -c". |
Not Working Working Fine |
Solution😉: https://www.lahoregraphix.com/drawer-navigation-errors-in-react-navigation/ |
Yes, this works for me :) |
Solved it by changing babel.config.js like below: delete node-modules |
This works for me too, thanks. |
I had the same problem for more but nothing worked for me, so I installed yarn, |
## Description During the installation of `react-native-reanimated` it's incredibly common to encounter a false-positive error that is easily fixed by clearing the cache. This PR adds a note to the docs about cleaning the cache after installing reanimated's babel plugin. Fixes #1875 ## Screenshots / GIFs Sorry for the dark theme 🙈 <img width="823" alt="image" src="https://user-images.githubusercontent.com/39658211/175934379-b33f8630-b269-40f2-b9bb-481bb5fb8eea.png"> ## Test code and steps to reproduce ```sh cd docs/ yarn yarn start ``` and navigate to http://localhost:3000/react-native-reanimated/docs/fundamentals/installation ## Checklist - [x] Updated documentation
## Description During the installation of `react-native-reanimated` it's incredibly common to encounter a false-positive error that is easily fixed by clearing the cache. This PR adds a note to the docs about cleaning the cache after installing reanimated's babel plugin. Fixes #1875 ## Screenshots / GIFs Sorry for the dark theme 🙈 <img width="823" alt="image" src="https://user-images.githubusercontent.com/39658211/175934379-b33f8630-b269-40f2-b9bb-481bb5fb8eea.png"> ## Test code and steps to reproduce ```sh cd docs/ yarn yarn start ``` and navigate to http://localhost:3000/react-native-reanimated/docs/fundamentals/installation ## Checklist - [x] Updated documentation
I had a .babelrc and babel.config.js file in my project root. I combined the two config into one
Also then ran This worked for me. |
can anyone tell why exactly placing "react-native-reanimated/plugin" at the end works? what exactly is this error about? |
I would like to know what your packages look like? |
I still got this issue using |
run using this command: npx react-native start --reset-cache also make sure your code is similar to: files shown here: https://socalledhacker.com/react-native-drawer-navigation-without-any-errors/ |
This worked for me plus running expo start -c with npx expo run:ios |
Hi, i just take the issue after i made babel.config.js to module.exports = { |
@eternalclash Have you found the solution? |
Thanks a lot. It worked for me. |
This worked for me
|
Description
Getting Issue in build compilation-
Reanimated 2 failed to create a worklet, maybe you forgot to add Reanimated's babel plugin?
when"react-native-reanimated": "^2.0.1"
is installed.Expected behavior
It should keep the build running as it do for previous versions
Actual behavior & steps to reproduce
Snack or minimal code example
package installation is throwing issue so,not any example code here.
Package versions
React Native -
react-native-reanimated -
Affected platforms
The text was updated successfully, but these errors were encountered: