Error: [Reanimated] Failed to create a worklet. #5504
Replies: 7 comments 18 replies
-
Hi! Have you written some code that uses reanimated or you get this error just after installing reanimated and gesture handler? If this is your module.exports = {
presets: ['module:@react-native/babel-preset'],
this.plugins: ['react-native-reanimated/plugin']
}; Please try to remove the module.exports = {
presets: ['module:@react-native/babel-preset'],
plugins: ['react-native-reanimated/plugin']
}; |
Beta Was this translation helpful? Give feedback.
-
|
Beta Was this translation helpful? Give feedback.
-
Hey @singhJasvinder101! Your babel config looks correct. Do you see this error after starting the project or after adding some specific code? If you see error after adding code that uses reanimated, could you please share the code snippet. Are you developing the app on android using a computer with windows? I am judging that based on your error stack trace you pasted in the comment above. When you saw this error? When you tried to install the older reanimated version or in some other case? |
Beta Was this translation helpful? Give feedback.
-
Since this issue turned out to be a config setup or metro cache problem, I will close the discussion. |
Beta Was this translation helpful? Give feedback.
-
Here is my package version
This is my babel.config.js
I added
in metro.config.js and 'react-native-reanimated/plugin' in babel.config.js and then running npm start -- --reset-cache solved the issue in my case. |
Beta Was this translation helpful? Give feedback.
-
im also having the issue? "react-native-reanimated": "^3.14.0", and i have added the TypeError: Cannot read property 'isConfigured' of undefined |
Beta Was this translation helpful? Give feedback.
-
ERROR Error: [Reanimated] Failed to create a worklet. See https://docs.swmansion.com/react-native-reanimated/docs/guides/troubleshooting#failed-to-create-a-worklet for more details., js engine: hermes getting this error and i've tried metro reset-cache but still i'm facing this issue babel.config.js:
|
Beta Was this translation helpful? Give feedback.
-
ERROR Error: [Reanimated] Failed to create a worklet. See https://docs.swmansion.com/react-native-reanimated/docs/guides/troubleshooting#failed-to-create-a-worklet for more details., js engine: hermes
This error comes again and again after installing both packages(reanimated, gesture handler):
Package.json->
"dependencies": {
"@react-navigation/bottom-tabs": "^6.5.11",
"@react-navigation/drawer": "^6.6.6",
"@react-navigation/native": "^6.1.9",
"@react-navigation/native-stack": "^6.9.17",
"axios": "^1.6.2",
"deprecated-react-native-prop-types": "^2.2.0",
"react": "18.2.0",
"react-native": "0.73.0",
"react-native-encrypted-storage": "^4.0.3",
"react-native-gesture-handler": "^2.14.0",
"react-native-image-crop-picker": "^0.40.2",
"react-native-reanimated": "^3.6.1",
"react-native-safe-area-context": "^4.8.1",
"react-native-screens": "^3.29.0",
"react-native-select-dropdown": "^3.4.0",
"react-native-swiper": "^1.6.0",
"react-native-vector-icons": "^10.0.3"
},
babel.config.js->
module.exports = {
presets: ['module:@react-native/babel-preset'],
this.plugins: ['react-native-reanimated/plugin']
};
Does anybody know how to fix it, I'm stuck here, Thanks in advance!
Beta Was this translation helpful? Give feedback.
All reactions