Error when building javascript bundle after upgrade to SDK 38

Hello. I’m trying to upgrade my app from SDK 36 to 38. First, i upgraded to sdk 37, no problem there. Everything working as expected. But then, I tried to do the same to sdk 38, then I get erros when trying to launch the app. I get 3 different erros. Sometimes error A shows up, other times error B or error C. always when trying to launch the app. Example of what’s going on:

My package.json is as follow:

"name": "empty-project-template",
  "main": "node_modules/expo/AppEntry.js",
  "private": true,
  "scripts": {
    "start": "expo start",
    "android": "expo start --android",
    "ios": "expo start --ios",
    "eject": "expo eject",
    "test": "node_modules/.bin/jest"
  },
  "jest": {
    "preset": "jest-expo",
    "testMatch": [
      "**/?(*.)test.js?(x)"
    ],
    "snapshotSerializers": [
      "enzyme-to-json/serializer"
    ],
    "setupFiles": [
      "<rootDir>/setup.js"
    ],
    "transformIgnorePatterns": [
      "node_modules/(?!react-native|react-navigation|expo)/"
    ],
    "collectCoverageFrom": [
      "src/**/*.js",
      "!src/icons/*",
      "!src/navigation/*",
      "!src/screens/Container.js"
    ]
  },
  "dependencies": {
    "@react-native-community/datetimepicker": "2.4.0",
    "axios": "^0.18.0",
    "date-fns": "^1.29.0",
    "expo": "^38.0.0",
    "expo-asset": "~8.1.7",
    "expo-blur": "~8.1.2",
    "expo-constants": "~9.1.1",
    "expo-facebook": "~8.2.1",
    "expo-file-system": "~9.0.1",
    "expo-font": "~8.2.1",
    "expo-google-app-auth": "^8.1.0",
    "expo-location": "~8.2.1",
    "expo-permissions": "~9.0.1",
    "prop-types": "^15.6.2",
    "react": "16.11.0",
    "react-native": "https://github.com/expo/react-native/archive/sdk-38.0.2.tar.gz",
    "react-native-appearance": "~0.3.3",
    "react-native-expo-image-cache": "^4.1.0",
    "react-native-gesture-handler": "~1.6.0",
    "react-native-iphone-x-helper": "^1.2.0",
    "react-native-keyboard-aware-scroll-view": "^0.9.1",
    "react-native-maps": "0.27.1",
    "react-native-masked-text": "^1.13.0",
    "react-native-modal": "^11.5.6",
    "react-native-modal-datetime-picker": "^8.7.1",
    "react-native-modal-dropdown": "^0.7.0",
    "react-native-open-maps": "^0.3.1",
    "react-native-optimized-flatlist": "git+https://github.com/otaviogaiao/react-native-optimized-flatlist.git#v1.2.0",
    "react-native-picker-select": "^7.0.0",
    "react-native-reanimated": "~1.9.0",
    "react-native-render-html": "^4.2.1",
    "react-native-responsive-screen": "^1.4.1",
    "react-native-root-siblings": "^3.1.6",
    "react-native-root-toast": "^3.2.1",
    "react-native-status-bar-height": "^2.5.0",
    "react-native-svg": "12.1.0",
    "react-native-webview": "9.4.0",
    "react-navigation": "^4.4.0",
    "react-redux": "^5.0.7",
    "redux": "^4.0.0",
    "redux-logger": "^3.0.6",
    "redux-persist": "^5.10.0",
    "redux-saga": "^0.16.0",
    "sentry-expo": "~2.0.0",
    "yaqrcode": "^0.2.1"
  },
  "devDependencies": {
    "@babel/core": "^7.0.0-0",
    "babel-eslint": "^8.2.6",
    "enzyme": "^3.11.0",
    "enzyme-adapter-react-16": "^1.15.2",
    "enzyme-to-json": "^3.5.0",
    "eslint": "^5.4.0",
    "eslint-config-airbnb": "^17.1.0",
    "eslint-config-prettier": "^5.0.0",
    "eslint-plugin-import": "^2.14.0",
    "eslint-plugin-jest": "^21.21.0",
    "eslint-plugin-jsx-a11y": "^6.1.1",
    "eslint-plugin-react": "^7.11.1",
    "jest-expo": "^38.0.0",
    "prettier": "^1.14.2",
    "prettier-eslint": "^8.8.2",
    "react-dom": "16.11.0",
    "redux-mock-store": "^1.5.3"
  }

I have no idea what’s going on, and the error messages don’t help at all…

Thanks in advance.

Hey @baladapp,

Can you try deleting your node_modules, clearing all the relevant caches (expo, npm, etc) and then re-install and see if that helps remedy the errors?

Cheers,
Adam

I just tried that. It didn’t work :disappointed: I will try creating a new project to see what’s different from mine.

1 Like

Sounds like a good plan to me. Please keep us updated.

I found the issue. The lib babel/@core needed to be updated. Now using the 7.8.6 and everything is working fine.

1 Like

Thanks for sharing the resolution with the community!

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