reanimated 2 failed to create a worklet maybe you forgot to add reanimated babel plugin

This error is likely because you put ‘react-native-reanimated/plugin’ in babel.config.js on the wrong line. Have a check again:

const pak = require('../package.json');

module.exports = {
  presets: ['module:metro-react-native-babel-preset'],
  plugins: [
    [
      'module-resolver',
      {
        extensions: ['.tsx', '.ts', '.js', '.json'],
        ...
      },
      'react-native-reanimated/plugin' // NOT HERE
    ],
    'react-native-reanimated/plugin' // PUT IT HERE
  ]
};

After the change, restart the bundler with:

npm start --reset-cache


More Articles

gulpInst is undefined

This error may happen when we try switching gulp-li versions around and got things messed up along t...

codezilla

codezilla

nameerror: name ‘_c’ is not defined

There are many situations in which you may encounter this error when doing the import torch. Try fol...

codezilla

codezilla

module ‘matplotlib.pyplot’ has no attribute ‘hold’

You may encounter this problem when using or updating to matplotlib 3.0+ because the function hold w...

codezilla

codezilla