Unable to resolve module `@babel/runtime/helpers/interopRequireDefault` from `node_modules\_expo@39.0.4@expo\AppEntry.js`:

I created expo app by npx create-react-native-app command, it can be run in the web browser, but when I run this command: expo build:android, it give me the following error message:
Building optimized bundles and generating sourcemaps…
Starting Metro Bundler.
Building iOS bundle
Unable to resolve module @babel/runtime/helpers/interopRequireDefault from node_modules\_expo@39.0.4@expo\AppEntry.js: @babel/runtime/helpers/interopRequireDefault could not be found within the project.

If you are sure the module exists, try these steps:

  1. Clear watchman watches: watchman watch-del-all
  2. Delete node_modules: rm -rf node_modules and run yarn install
  3. Reset Metro’s cache: yarn start --reset-cache
  4. Remove the cache: rm -rf /tmp/metro-*
    Failed building JavaScript bundle.
    Unable to resolve “@babel/runtime/helpers/interopRequireDefault” from “node_modules_expo@39.0.4@expo\AppEntry.js”
    Packager URL\AppEntry.bundle?dev=false&hot=false&minify=true&platform=ios returned unexpected code 500. Please open your project in the Expo app and see if there are any errors. Also scroll up and make sure there were no errors or warnings when opening your project.

When I run expo diagnostics the result is as follows:
expo diagnostics

Expo CLI 3.28.5 environment info:
OS: Windows 10 10.0.19042
Node: 14.15.0 - C:\Program Files\nodejs\node.EXE
npm: 6.14.8 - C:\Program Files\nodejs\npm.CMD
Android SDK:
API Levels: 29
Build Tools: 29.0.2
System Images: android-29 | Intel x86 Atom_64, android-29 | Google Play Intel x86 Atom
Android Studio: Version AI-201.8743.12.41.6953283
expo: ~39.0.0 => 39.0.4
react: ~16.13.0 => 16.13.1
react-dom: ~16.13.0 => 16.13.1
react-native: https://github.com/expo/react-native/archive/sdk-39.0.2.tar.gz => 0.63.2
react-native-web: 0.13.13 => 0.13.13
Expo Workflow: managed.

Please help me solve this problem, thank you very much and much appreciated.

1 Like

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