SDK 33 and 34 - Attempting to call JS function on a bad application bundle

Please provide the following:

  1. SDK Version: Both 33 and 34
  2. Platforms(Android/iOS/web/all): Android

Hello! I recently built and deployed an app using Expo SDK 33, it’s currently on closed beta on both play and app stores. My issue started when the client downloaded the app on his Samsung S8. Initially the app worked without issues, but when he closed it and reopened it he saw the following error

He then reported that uninstalling and reinstalling the app makes it work again, only for the problem to return whenever he closes it and tries to reopen it again. Restarting the device or clearing the app data/cache do not help.

I immediately started researching the problem and found that many faced a similar issue over OTA updates, such as this issue here or this one here. But I’ve never updated the app,

My client could consistently reproduce the issue by closing and trying to reopen it on his device, but it works correctly on my device (android), that is, I’m unable to reproduce the issue.

I then updated the SDK from 33 to 34, but it didn’t help matters.

Aside from trying to continue to update everything I’ve no idea as to what could be causing the issue. Any ideas would be appreciated.

The contents of my package.json file are:

{
  "main": "node_modules/expo/AppEntry.js",
  "scripts": {
    "start": "expo start",
    "android": "expo start --android",
    "ios": "expo start --ios",
    "eject": "expo eject",
    "test": "node ./node_modules/jest/bin/jest.js --watchAll"
  },
  "jest": {
    "preset": "jest-expo"
  },
  "dependencies": {
    "@expo/samples": "2.1.1",
    "@expo/vector-icons": "^10.0.0",
    "axios": "^0.19.0",
    "expo": "^34.0.0",
    "expo-asset": "~6.0.0",
    "expo-barcode-scanner": "~6.0.0",
    "expo-camera": "~6.0.0",
    "expo-constants": "~6.0.0",
    "expo-facebook": "~6.0.0",
    "expo-font": "~6.0.1",
    "expo-google-sign-in": "~6.0.0",
    "expo-image-picker": "~6.0.0",
    "expo-location": "~6.0.0",
    "expo-permissions": "~6.0.0",
    "expo-sms": "~6.0.0",
    "firebase": "^5.8.4",
    "fuse.js": "^3.4.5",
    "moment": "^2.24.0",
    "react": "16.8.3",
    "react-native": "https://github.com/expo/react-native/archive/sdk-34.0.2.tar.gz",
    "react-native-flash-message": "^0.1.13",
    "react-native-gesture-handler": "~1.3.0",
    "react-native-icon-badge": "^1.1.3",
    "react-native-image-pan-zoom": "^2.1.11",
    "react-native-maps": "~0.24.0",
    "react-native-material-dropdown": "^0.11.1",
    "react-native-modal": "^9.0.0",
    "react-native-qrcode-svg": "^5.1.2",
    "react-native-svg": "~9.5.1",
    "react-native-text-ticker": "^1.0.0",
    "react-native-uuid-generator": "^6.1.1",
    "react-navigation": "^3.11.0",
    "react-redux": "^6.0.1",
    "redux": "^4.0.1",
    "redux-thunk": "^2.3.0",
    "stripe-client": "^1.1.5"
  },
  "devDependencies": {
    "babel-preset-expo": "^6.0.0",
    "jest-expo": "^34.0.0"
  },
  "private": true
}

Hi

The “Unterminated regular expression literal” error does look like it could be caused by a corrupted/truncated JS bundle. Why it might be corrupted/truncated, though, I am not sure.

Does it make a difference if you disable OTA updates?

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.