Upgrade to SDK 41 error

Hi

Upgrading to sdk 41 from 40 i get this error when i run yarn start:

Cannot find module 'core-js/es/string/match-all'
Require stack:
- /Users/praveenjayarajan/Documents/payright/customer-app/node_modules/@expo/config-plugins/node_modules/@expo/configure-splash-screen/build/utils/string-utils.js
- /Users/praveenjayarajan/Documents/payright/customer-app/node_modules/@expo/config-plugins/node_modules/@expo/configure-splash-screen/build/ios/Info.plist.js
- /Users/praveenjayarajan/Documents/payright/customer-app/node_modules/@expo/config-plugins/node_modules/@expo/configure-splash-screen/build/ios/index.js
- /Users/praveenjayarajan/Documents/payright/customer-app/node_modules/@expo/config-plugins/node_modules/@expo/configure-splash-screen/build/index.js
- /Users/praveenjayarajan/Documents/payright/customer-app/node_modules/@expo/config-plugins/build/android/SplashScreen.js
- /Users/praveenjayarajan/Documents/payright/customer-app/node_modules/@expo/config-plugins/build/android/index.js
- /Users/praveenjayarajan/Documents/payright/customer-app/node_modules/@expo/config-plugins/build/index.js
- /Users/praveenjayarajan/Documents/payright/customer-app/node_modules/@expo/config/build/plugins/withConfigPlugins.js
- /Users/praveenjayarajan/Documents/payright/customer-app/node_modules/@expo/config/build/Config.js
- /Users/praveenjayarajan/Documents/payright/customer-app/node_modules/@expo/config/build/index.js
- /Users/praveenjayarajan/Documents/payright/customer-app/node_modules/@expo/metro-config/build/ExpoMetroConfig.js
- /Users/praveenjayarajan/Documents/payright/customer-app/metro.config.js
- /Users/praveenjayarajan/Documents/payright/customer-app/node_modules/import-fresh/index.js
- /Users/praveenjayarajan/Documents/payright/customer-app/node_modules/cosmiconfig/dist/loaders.js
- /Users/praveenjayarajan/Documents/payright/customer-app/node_modules/cosmiconfig/dist/createExplorer.js
- /Users/praveenjayarajan/Documents/payright/customer-app/node_modules/cosmiconfig/dist/index.js
- /Users/praveenjayarajan/Documents/payright/customer-app/node_modules/@react-native-community/cli/build/tools/config/readConfigFromDisk.js
- /Users/praveenjayarajan/Documents/payright/customer-app/node_modules/@react-native-community/cli/build/tools/config/index.js
- /Users/praveenjayarajan/Documents/payright/customer-app/node_modules/@react-native-community/cli/build/commands/install/install.js
- /Users/praveenjayarajan/Documents/payright/customer-app/node_modules/@react-native-community/cli/build/commands/index.js
- /Users/praveenjayarajan/Documents/payright/customer-app/node_modules/@react-native-community/cli/build/index.js
- /Users/praveenjayarajan/Documents/payright/customer-app/node_modules/react-native/cli.js. Run CLI with --verbose flag for more details.
Error: Cannot find module 'core-js/es/string/match-all'
Require stack:
- /Users/praveenjayarajan/Documents/payright/customer-app/node_modules/@expo/config-plugins/node_modules/@expo/configure-splash-screen/build/utils/string-utils.js
- /Users/praveenjayarajan/Documents/payright/customer-app/node_modules/@expo/config-plugins/node_modules/@expo/configure-splash-screen/build/ios/Info.plist.js
- /Users/praveenjayarajan/Documents/payright/customer-app/node_modules/@expo/config-plugins/node_modules/@expo/configure-splash-screen/build/ios/index.js
- /Users/praveenjayarajan/Documents/payright/customer-app/node_modules/@expo/config-plugins/node_modules/@expo/configure-splash-screen/build/index.js
- /Users/praveenjayarajan/Documents/payright/customer-app/node_modules/@expo/config-plugins/build/android/SplashScreen.js
- /Users/praveenjayarajan/Documents/payright/customer-app/node_modules/@expo/config-plugins/build/android/index.js
- /Users/praveenjayarajan/Documents/payright/customer-app/node_modules/@expo/config-plugins/build/index.js
- /Users/praveenjayarajan/Documents/payright/customer-app/node_modules/@expo/config/build/plugins/withConfigPlugins.js
- /Users/praveenjayarajan/Documents/payright/customer-app/node_modules/@expo/config/build/Config.js
- /Users/praveenjayarajan/Documents/payright/customer-app/node_modules/@expo/config/build/index.js
- /Users/praveenjayarajan/Documents/payright/customer-app/node_modules/@expo/metro-config/build/ExpoMetroConfig.js
- /Users/praveenjayarajan/Documents/payright/customer-app/metro.config.js
- /Users/praveenjayarajan/Documents/payright/customer-app/node_modules/import-fresh/index.js
- /Users/praveenjayarajan/Documents/payright/customer-app/node_modules/cosmiconfig/dist/loaders.js
- /Users/praveenjayarajan/Documents/payright/customer-app/node_modules/cosmiconfig/dist/createExplorer.js
- /Users/praveenjayarajan/Documents/payright/customer-app/node_modules/cosmiconfig/dist/index.js
- /Users/praveenjayarajan/Documents/payright/customer-app/node_modules/@react-native-community/cli/build/tools/config/readConfigFromDisk.js
- /Users/praveenjayarajan/Documents/payright/customer-app/node_modules/@react-native-community/cli/build/tools/config/index.js
- /Users/praveenjayarajan/Documents/payright/customer-app/node_modules/@react-native-community/cli/build/commands/install/install.js
- /Users/praveenjayarajan/Documents/payright/customer-app/node_modules/@react-native-community/cli/build/commands/index.js
- /Users/praveenjayarajan/Documents/payright/customer-app/node_modules/@react-native-community/cli/build/index.js
- /Users/praveenjayarajan/Documents/payright/customer-app/node_modules/react-native/cli.js
    at Function.Module._resolveFilename (internal/modules/cjs/loader.js:815:15)
    at Function.Module._load (internal/modules/cjs/loader.js:667:27)
    at Module.require (internal/modules/cjs/loader.js:887:19)
    at require (internal/modules/cjs/helpers.js:74:18)
    at Object.<anonymous> (/Users/praveenjayarajan/Documents/payright/customer-app/node_modules/@expo/config-plugins/node_modules/@expo/configure-splash-screen/build/utils/string-utils.js:5:1)
    at Module._compile (internal/modules/cjs/loader.js:999:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:1027:10)
    at Module.load (internal/modules/cjs/loader.js:863:32)
    at Function.Module._load (internal/modules/cjs/loader.js:708:14)
    at Module.require (internal/modules/cjs/loader.js:887:19)

Any help appreciated

Regards

  • run expo diagnostics share output
  • share your babel config
  • change @expo/metro-config to expo/metro-config in metro.config.js

Hi

Updating to expo/metro-config fixed the above error, but I am having issues running android locally.

babel.config.js

module.exports = function (api) {
  api.cache(true);
  return {
    presets: ["babel-preset-expo"],
    plugins: [
      "react-native-reanimated/plugin",
      [
        "module-resolver",
        {
          alias: {
            views: "./views",
            assets: "./assets",
            components: "./components",
            providers: "./providers",
            containers: "./containers",
            services: "./services",
            common: "./common",
            utils: "./utils",
            store: "./store",
          },
        },
      ],
    ],
  };
};

expo diagnostics

    System:
      OS: macOS 11.3.1
      Shell: 5.8 - /bin/zsh
    Binaries:
      Node: 14.17.0 - ~/.nvm/versions/node/v14.17.0/bin/node
      Yarn: 1.22.10 - /usr/local/bin/yarn
      npm: 7.15.0 - ~/.nvm/versions/node/v14.17.0/bin/npm
      Watchman: 2021.06.07.00 - /usr/local/bin/watchman
    Managers:
      CocoaPods: 1.10.1 - /usr/local/bin/pod
    SDKs:
      iOS SDK:
        Platforms: iOS 14.4, DriverKit 20.2, macOS 11.1, tvOS 14.3, watchOS 7.2
      Android SDK:
        API Levels: 29, 30
        Build Tools: 28.0.3, 29.0.2, 30.0.2
        System Images: android-29 | Google APIs Intel x86 Atom, android-30 | Google APIs Intel x86 Atom, android-S | Google APIs ARM 64 v8a
    IDEs:
      Android Studio: 4.2 AI-202.7660.26.42.7351085
      Xcode: 12.4/12D4e - /usr/bin/xcodebuild
    npmPackages:
      expo: ^40.0.0 => 40.0.1 
      react: 16.13.1 => 16.13.1 
      react-dom: 16.13.1 => 16.13.1 
      react-native: ~0.63.4 => 0.63.4 
      react-native-web: ~0.13.12 => 0.13.18 
    npmGlobalPackages:
      expo-cli: 4.5.2
    Expo Workflow: bare

I have pinned the issue down to the android hermes setting in build.gradle, when enableHermes is false I have no problems, but when it is true, I am getting a bunch of hermes related errors.

Does expo sdk 41 support hermes? Seems i need to enable this for react-native-reanimated.

Regards,

PJ.

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