error code 500:unable to resolve node_modules

Failed building JavaScript bundle.
Unable to resolve "../../App" from "node_modules/expo/AppEntry.js"

None of these files exist:

  • App(.native|.ios.expo.ts|.native.expo.ts|.expo.ts|.ios.expo.tsx|.native.expo.tsx|.expo.tsx|.ios.expo.js|.native.expo.js|.e
    xpo.js|.ios.expo.jsx|.native.expo.jsx|.expo.jsx|.ios.ts|.native.ts|.ts|.ios.tsx|.native.tsx|.tsx|.ios.js|.native.js|.js|.ios.j
    sx|.native.jsx|.jsx|.ios.json|.native.json|.json|.ios.wasm|.native.wasm|.wasm)
  • App/index(.native|.ios.expo.ts|.native.expo.ts|.expo.ts|.ios.expo.tsx|.native.expo.tsx|.expo.tsx|.ios.expo.js|.native.expo
    .js|.expo.js|.ios.expo.jsx|.native.expo.jsx|.expo.jsx|.ios.ts|.native.ts|.ts|.ios.tsx|.native.tsx|.tsx|.ios.js|.native.js|.js|
    .ios.jsx|.native.jsx|.jsx|.ios.json|.native.json|.json|.ios.wasm|.native.wasm|.wasm)
    Failed building JavaScript bundle.
    Unable to resolve “…/…/App” from “node_modules/expo/AppEntry.js”
    Packager URL http://127.0.0.1:58689/node_modules/expo/AppEntry.bundle?dev=false&hot=false&minify=true&platform=ios returned un
    expected code 500. Please open your project in the Expo app and see if there are any errors. Also scroll up and make sure ther
    e were no errors or warnings when opening your project.

    Expo CLI 3.17.11 environment info:
    System:
    OS: Linux 4.4 Ubuntu 18.04.2 LTS (Bionic Beaver)
    Shell: 4.4.20 - /bin/bash
    Binaries:
    Node: 10.16.3 - /usr/bin/node
    npm: 6.11.3 - /usr/bin/npm
    npmPackages:
    expo: ~39.0.2 => 39.0.4
    react: 16.13.1 => 16.13.1
    react-native: https://github.com/expo/react-native/archive/sdk-39.0.4.tar.gz => 0.63.2
    npmGlobalPackages:
    expo-cli: 3.17.11