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

App keep crashing when i do any changes #2604

Closed
KhalidAlghamdi8 opened this issue Jan 8, 2024 · 3 comments
Closed

App keep crashing when i do any changes #2604

KhalidAlghamdi8 opened this issue Jan 8, 2024 · 3 comments
Labels

Comments

@KhalidAlghamdi8
Copy link

KhalidAlghamdi8 commented Jan 8, 2024

Describe the bug

App keep crashing when I do any changes

yesterday was working fine then i pushed to to git and today I am facing bellow error even I git reset to the working commit but still same error.

ERROR  Your app just crashed. See the error below.
java.lang.NullPointerException: Attempt to invoke interface method 'void com.facebook.react.devsupport.interfaces.DevLoadingViewManager.showMessage(java.lang.String)' on a null object reference
  com.facebook.react.modules.devloading.DevLoadingModule$1.run(DevLoadingModule.java:49)
  android.os.Handler.handleCallback(Handler.java:958)
  android.os.Handler.dispatchMessage(Handler.java:99)
  android.os.Looper.loopOnce(Looper.java:205)
  android.os.Looper.loop(Looper.java:294)
  android.app.ActivityThread.main(ActivityThread.java:8177)
  java.lang.reflect.Method.invoke(Native Method)
  com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:552)
  com.android.internal.os.ZygoteInit.main(ZygoteInit.java:971)

package.json

{
  "name": "arenas-sports",
  "version": "0.0.1",
  "private": true,
  "scripts": {
    "compile": "tsc --noEmit -p . --pretty",
    "format": "prettier --write \"app/**/*.{js,jsx,json,md,ts,tsx}\"",
    "lint": "eslint App.tsx app test --fix --ext .js,.ts,.tsx && npm run format",
    "patch": "patch-package",
    "test": "jest",
    "test:watch": "jest --watch",
    "test:maestro": "maestro test .maestro/FavoritePodcast.yaml",
    "adb": "adb reverse tcp:9090 tcp:9090 && adb reverse tcp:3000 tcp:3000 && adb reverse tcp:9001 tcp:9001 && adb reverse tcp:8081 tcp:8081",
    "postinstall": "patch-package",
    "bundle:visualize": "npx react-native-bundle-visualizer",
    "bundle:visualize:dev": "npx react-native-bundle-visualizer --dev",
    "build:ios:sim": "eas build --profile development --platform ios --local",
    "build:ios:dev": "eas build --profile development:device --platform ios --local",
    "build:ios:prod": "eas build --profile production --platform ios --local",
    "build:android:sim": "eas build --profile development --platform android --local",
    "build:android:dev": "eas build --profile development:device --platform android --local",
    "build:android:prod": "eas build --profile production --platform android --local",
    "start": "npx expo start",
    "android": "npx expo run:android",
    "ios": "npx expo run:ios",
    "web": "npx expo start --web",
    "bundle:web": "npx expo export --platform web",
    "serve:web": "npx server dist",
    "prebuild:clean": "npx expo prebuild --clean",
    "prebuild": "npx expo prebuild"
  },
  "dependencies": {
    "@expo-google-fonts/space-grotesk": "^0.2.2",
    "@react-native-async-storage/async-storage": "1.19.3",
    "@react-navigation/bottom-tabs": "^6.3.2",
    "@react-navigation/native": "^6.0.2",
    "@react-navigation/native-stack": "^6.0.2",
    "@shopify/flash-list": "^1.6.1",
    "apisauce": "3.0.1",
    "date-fns": "^2.30.0",
    "expo": "^49.0.21",
    "expo-application": "~5.4.0",
    "expo-build-properties": "~0.8.3",
    "expo-constants": "~14.4.2",
    "expo-dev-client": "~2.4.12",
    "expo-font": "~11.4.0",
    "expo-linking": "~5.0.2",
    "expo-localization": "~14.5.0",
    "expo-splash-screen": "~0.20.4",
    "expo-status-bar": "~1.6.0",
    "firebase": "^10.7.1",
    "i18n-js": "3.9.2",
    "mobx": "6.10.2",
    "mobx-react-lite": "4.0.5",
    "mobx-state-tree": "5.3.0",
    "react": "18.2.0",
    "react-dom": "18.2.0",
    "react-native": "0.72.7",
    "react-native-drawer-layout": "4.0.0-alpha.1",
    "react-native-gesture-handler": "~2.12.0",
    "react-native-reanimated": "~3.3.0",
    "react-native-safe-area-context": "4.6.3",
    "react-native-screens": "~3.22.0",
    "react-native-web": "~0.19.6"
  },
  "devDependencies": {
    "@babel/core": "^7.20.0",
    "@babel/plugin-proposal-export-namespace-from": "^7.18.9",
    "@babel/plugin-proposal-nullish-coalescing-operator": "^7.0.0",
    "@babel/plugin-proposal-optional-chaining": "^7.0.0",
    "@babel/plugin-transform-arrow-functions": "^7.0.0",
    "@babel/plugin-transform-shorthand-properties": "^7.0.0",
    "@babel/plugin-transform-template-literals": "^7.0.0",
    "@babel/preset-env": "^7.20.0",
    "@babel/runtime": "^7.20.0",
    "@types/i18n-js": "3.8.2",
    "@types/jest": "^29.2.1",
    "@types/react": "~18.2.14",
    "@types/react-native": "^0.73.0",
    "@types/react-test-renderer": "^18.0.0",
    "@typescript-eslint/eslint-plugin": "^5.59.0",
    "@typescript-eslint/parser": "^5.59.0",
    "babel-jest": "^29.2.1",
    "eslint": "8.17.0",
    "eslint-config-prettier": "8.5.0",
    "eslint-config-standard": "17.0.0",
    "eslint-plugin-import": "2.26.0",
    "eslint-plugin-n": "^15.0.0",
    "eslint-plugin-node": "11.1.0",
    "eslint-plugin-promise": "6.0.0",
    "eslint-plugin-react": "7.30.0",
    "eslint-plugin-react-native": "4.0.0",
    "eslint-plugin-reactotron": "^0.1.1",
    "jest": "^29.2.1",
    "jest-expo": "49.0.0",
    "patch-package": "6.4.7",
    "postinstall-prepare": "1.0.1",
    "prettier": "2.8.8",
    "react-test-renderer": "18.2.0",
    "reactotron-core-client": "2.8.11",
    "reactotron-mst": "3.1.5",
    "reactotron-react-js": "3.3.9",
    "reactotron-react-native": "5.0.4",
    "ts-jest": "^29.1.1",
    "ts-node": "^10.9.2",
    "typescript": "5.3.2"
  },
  "expo": {
    "install": {
      "exclude": [
        "typescript"
      ]
    }
  },
  "engines": {
    "node": ">=16"
  },
  "prettier": {
    "printWidth": 100,
    "semi": false,
    "singleQuote": false,
    "trailingComma": "all"
  },
  "eslintConfig": {
    "root": true,
    "parser": "@typescript-eslint/parser",
    "extends": [
      "plugin:@typescript-eslint/recommended",
      "plugin:react/recommended",
      "plugin:react-native/all",
      "standard",
      "prettier"
    ],
    "plugins": [
      "@typescript-eslint",
      "react",
      "react-native",
      "reactotron"
    ],
    "parserOptions": {
      "ecmaFeatures": {
        "jsx": true
      }
    },
    "settings": {
      "react": {
        "pragma": "React",
        "version": "detect"
      }
    },
    "globals": {
      "__DEV__": false,
      "jasmine": false,
      "beforeAll": false,
      "afterAll": false,
      "beforeEach": false,
      "afterEach": false,
      "test": false,
      "expect": false,
      "describe": false,
      "jest": false,
      "it": false
    },
    "rules": {
      "@typescript-eslint/ban-ts-ignore": 0,
      "@typescript-eslint/ban-ts-comment": 0,
      "@typescript-eslint/explicit-function-return-type": 0,
      "@typescript-eslint/explicit-member-accessibility": 0,
      "@typescript-eslint/explicit-module-boundary-types": 0,
      "@typescript-eslint/indent": 0,
      "@typescript-eslint/member-delimiter-style": 0,
      "@typescript-eslint/no-empty-interface": 0,
      "@typescript-eslint/no-explicit-any": 0,
      "@typescript-eslint/no-object-literal-type-assertion": 0,
      "@typescript-eslint/no-var-requires": 0,
      "@typescript-eslint/no-unused-vars": [
        "error",
        {
          "argsIgnorePattern": "^_",
          "varsIgnorePattern": "^_"
        }
      ],
      "comma-dangle": 0,
      "multiline-ternary": 0,
      "no-undef": 0,
      "no-unused-vars": 0,
      "no-use-before-define": 0,
      "no-global-assign": 0,
      "quotes": 0,
      "react-native/no-raw-text": 0,
      "react/no-unescaped-entities": 0,
      "react/prop-types": 0,
      "space-before-function-paren": 0,
      "reactotron/no-tron-in-production": "error"
    }
  }
}

Ignite version

9.3.0

Additional info

JavaScript (and globally-installed packages)
  node                  20.8.1                                    C:\Program Files\nodejs\node.EXE
  npm                   10.2.5                                    C:\Program Files\nodejs\npm.CMD
    @expo/ngrok         2.5.0
    eas-cli             5.9.3
    expo-cli            6.3.10
    firebase-tools      13.0.2
    ngrok               5.0.0-beta.2
    npm-check-updates   16.14.12
    npm                 10.2.5
    pnpm                8.13.1
    react-devtools      5.0.0
    sharp-cli           2.1.0
    webpack             5.89.0
    yarn                1.22.21
  yarn                  1.22.21                                   C:\Users\kalgh\AppData\Roaming\npm\yarn.CMD
  pnpm                  8.13.1                                    C:\Users\kalgh\AppData\Roaming\npm\pnpm.CMD
                        <no pnpm global package info available>
  bun                   -                                         not installed
  expo                  49.0.21                                   managed

Ignite
  ignite-cli         9.3.1        C:\Users\kalgh\AppData\Local\npm-cache\_npx\e31027f3785124a8\node_modules\.bin\ignite.CMD   
  ignite src         build        C:\Users\kalgh\AppData\Local\npm-cache\_npx\e31027f3785124a8\node_modules\ignite-cli\build  

Android
  java               21.0.1       C:\Program Files\Eclipse Adoptium\jdk-21.0.1.12-hotspot\bin\java.EXE
  android home       -            C:\Users\kalgh\AppData\Local\Android\Sdk

Tools
  git                git version 2.43.0.windows.1   C:\Program Files\Git\cmd\git.EXE 
@frankcalise
Copy link
Contributor

Hi @KhalidAlghamdi8 thanks for providing some information about your error.

One thing to note is your JDK is not at the suggested version of 17 as per the Environment Setup documentation at React Native

Could you also tell me what commands you used to generate and run the project?

@KhalidAlghamdi8
Copy link
Author

Hi @KhalidAlghamdi8 thanks for providing some information about your error.

One thing to note is your JDK is not at the suggested version of 17 as per the Environment Setup documentation at React Native

Could you also tell me what commands you used to generate and run the project?

Hi @frankcalise, I am using yarn android.

The issue was fixed following this expo/expo#25520

Thank you for being so supportive.

@frankcalise
Copy link
Contributor

Thanks for the update @KhalidAlghamdi8!

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

No branches or pull requests

2 participants