Skip to content
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 failed to create a worklet issue (still) #166

Open
joshuaaron opened this issue Nov 12, 2021 · 1 comment
Open

Reanimated failed to create a worklet issue (still) #166

joshuaaron opened this issue Nov 12, 2021 · 1 comment

Comments

@joshuaaron
Copy link

joshuaaron commented Nov 12, 2021

I've been through this thread but unable to find a working solution so hoping someone might also be able to help here?

Cannot build our current app with reanimated due to the 'Reanimated failed to create a worklet, maybe you forgot to add Reanimated's babel plugin' error

I've followed these instructions, as well as the linked issue threads suggestions on clearing caches.

Note this is for react-native cli project, not expo. This is becoming a dealbreaker and hoping someone here has found a solution?

"react-native": "0.66.0",
"react-native-reanimated": "2.3.0-beta.3"
"react-native-gesture-handler": "1.10.3",
"react-native-flipper": "0.115.0",

babel.config.js

const presets = ['module:metro-react-native-babel-preset'];
const plugins = [];

plugins.push([
    require.resolve('babel-plugin-module-resolver'),
    {
        cwd: 'babelrc',
        root: ['./src'],
        extensions: ['.ios.ts', '.android.ts', '.ts', '.ios.tsx', '.android.tsx', '.tsx', '.jsx', '.js', '.json'],
        alias: {
            '@ch': './src',
        },
    },
    'react-native-reanimated/plugin',
]);

module.exports = {
    presets,
    plugins,
};
watchman watch-del-all 
&& rm -rf node_modules/ && rm package-lock.json 
&& npm cache clean --force 
&& npm install 
&& npx react-native start -- --reset-cache

Screen Shot 2021-11-12 at 9 18 57 AM

@wcandillon
Copy link
Owner

I'm not familiar with this issue at all. Could you share a small repo to reproduce the issue? I'm using expo exclusively so it might be hard for me to help here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants