0

Getting error in react-nativer-reanimated version 3.15 and react-native cli version 0.75

babel.config.js file if there is something incorrect

module.exports = {
  presets: ['module:@react-native/babel-preset'],
  plugins: [
    ["react-native-auto-route/plugin", { appDirectory: "src" }],
    "nativewind/babel",
    'react-native-reanimated/plugin'
  ],
};

package.json

{
  "dependencies": {
    "@fortawesome/fontawesome-svg-core": "^6.6.0",
    "@fortawesome/free-solid-svg-icons": "^6.6.0",
    "@fortawesome/react-native-fontawesome": "^0.3.2",
    "@react-native-community/blur": "^4.4.0",
    "nativewind": "^2.0.11",
    "react": "18.3.1",
    "react-native": "0.75.2",
    "react-native-blurhash": "^2.0.3",
    "react-native-gesture-handler": "^2.18.1",
    "react-native-linear-gradient": "^2.8.3",
    "react-native-loader-kit": "^2.0.8",
    "react-native-paper": "^5.12.5",
    "react-native-reanimated": "^3.15.0",
    "react-native-safe-area-context": "^4.10.9",
    "react-native-screens": "^3.34.0",
    "react-native-splash-screen": "^3.3.0",
    "react-native-svg": "^15.6.0",
    "react-native-track-player": "^4.1.1"
  },
  "devDependencies": {
    "@babel/core": "^7.20.0",
    "@babel/preset-env": "^7.20.0",
    "@babel/runtime": "^7.25.4",
    "@react-native/babel-preset": "0.75.2",
    "@react-native/eslint-config": "0.75.2",
    "@react-native/metro-config": "0.75.2",
    "@react-native/typescript-config": "0.75.2",
    "@types/react": "^18.2.6",
    "@types/react-test-renderer": "^18.0.0",
    "babel-jest": "^29.6.3",
    "eslint": "^8.19.0",
    "jest": "^29.6.3",
    "prettier": "2.8.8",
    "react-native-auto-route": "^0.3.3",
    "react-test-renderer": "18.3.1",
    "tailwindcss": "^3.3.2",
    "typescript": "5.0.4"
  }
}

I researched about error go through the documentation applied all solutions

  1. keeping this in babel.config.js
  2. position should be last
2
  • Did you clear you Metro cache? --reset-cache or --resetCache Commented Aug 24, 2024 at 11:00
  • Yeah I tried that and its working now.... Commented Aug 25, 2024 at 9:42

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.