Closed ablause closed 2 years ago
The issue is valid!
I'm sorry, I made a mistake in the babel.config.js file...
@ablause What was your mistake? I'm observing the same issue at my end...
I put react-native-reanimated/plugin
in "presets"
, instead in "plugins"
. Check if you haven't done the same.
mmm. Found it. It should have been this below in babel config file:
module.exports = {
presets: [
'module:metro-react-native-babel-preset'
],
plugins: [
'react-native-reanimated/plugin',
],
};
I put
react-native-reanimated/plugin
in"presets"
, instead in"plugins"
. Check if you haven't done the same.
im glad you made this mistake, same here 😄
I'm sorry, I made a mistake in the babel.config.js file...
you are forewalker thx a lot
same with me i put it on it too haha... and don't forget to run yarn android again
I put
react-native-reanimated/plugin
in"presets"
, instead in"plugins"
. Check if you haven't done the same.
made the same mistake while using ['react-native-worklets-core/plugin'], (put it in presets). And the case could be for any other plugin as well.
Description
Since I installed
react-native-reanimated
, my application won't start. I tried several versions of react-native or Babel, but nothing works.Expected behavior
When I add the
react-native-reanimated/plugin
plugin in thebabel.config.js
file, my application doesn't want to run anymore.Actual behavior & steps to reproduce
npx react-native init MyApp --template @ui-kitten/template-ts
.npm install react-native-reanimated
.enableHermes
totrue
.react-native run-android
or with--reset-cache
.Snack or minimal code example
babel.config.js
index.js
App.tsx (I already tried to remove all routes and imports)
Package versions
Affected platforms