expo-updates in react-native bare project

Hello,
I am trying to implement expo-updates for react-native apps. I have followed the procedure from this link : https://github.com/expo/expo/tree/master/packages/expo-updates.
Note: I’m not using expo module so it’s not included in package.json
I have build using gradlew assembleRelease. Now when I’m trying to expo publish I’m getting the following error message:

Unable to find an existing Expo CLI instance for this directory; starting a new one…
Starting Metro Bundler on port 19001.
Publishing to channel ‘try1’…
We noticed that you have not built a standalone app with this SDK version and release channel before. Remember that OTA updates will only work for builds with matching SDK versions and release channels. Read more here: https://docs.expo.io/workflow/publishing/#limitations
Building iOS bundle

Error
Error: Unable to resolve module `./node_modules/expo/AppEntry` from ``: 

None of these files exist:
 * node_modules\expo\AppEntry(.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|.ios.svg|.native.svg|.svg)
 * node_modules\expo\AppEntry\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|.ios.svg|.native.svg|.svg)
   at ModuleResolver.resolveDependency (....\node_modules\metro\src\node-haste\DependencyGraph\ModuleResolution.js:163:15)
   at ResolutionRequest.resolveDependency (....\node_modules\metro\src\node-haste\DependencyGraph\ResolutionRequest.js:52:18)
   at DependencyGraph.resolveDependency (....\node_modules\metro\src\node-haste\DependencyGraph.js:282:16)
   at ....\node_modules\metro\src\lib\transformHelpers.js:267:42
   at Server.<anonymous> (....\node_modules\metro\src\Server.js:1088:41)
   at Generator.next (<anonymous>)
   at asyncGeneratorStep (.....\metro\src\Server.js:99:24)
   at _next (.....\node_modules\metro\src\Server.js:119:9)

› Closing Expo server
Error: Unable to resolve module ./node_modules/expo/AppEntry from ``:

None of these files exist:

  • node_modules\expo\AppEntry(.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|.ios.svg|.native.svg|.svg)
  • node_modules\expo\AppEntry\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|.ios.svg|.native.svg|.svg)
    at ModuleResolver.resolveDependency (…\node_modules\metro\src\node-haste\DependencyGraph\ModuleResolution.js:163:15)
    at ResolutionRequest.resolveDependency (…\node_modules\metro\src\node-haste\DependencyGraph\ResolutionRequest.js:52:18)
    at DependencyGraph.resolveDependency (…\node_modules\metro\src\node-haste\DependencyGraph.js:282:16)
    at …\node_modules\metro\src\lib\transformHelpers.js:267:42
    at Server. (…\node_modules\metro\src\Server.js:1088:41)
    at Generator.next ()
    at asyncGeneratorStep (…\node_modules\metro\src\Server.js:99:24)
    at _next (…\node_modules\metro\src\Server.js:119:9)

› Stopping Metro bundler
Packager URL http://127.0.0.1:19001/node_modules\expo\AppEntry.bundle?dev=false&minify=true&hot=false&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.

My index.js :

import {AppRegistry} from ‘react-native’;
import ‘expo-asset’;
import App from ‘./App’;
AppRegistry.registerComponent(‘main’, () => App);

1 Like

Any news i have same issue

I have shifted to code-push because of these issues.