question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Anyone tried to create an expo dev client against an ignited app? I'm getting this error....

See original GitHub issue

I ignited an app recently using the expo option. Then I upgraded to expo 43. Now I am attempting to build a dev client so i can include some custom native code:

https://docs.expo.dev/development/getting-started/#creating-and-installing-your-first-development-build

I am running the build command:

eas build --profile development --platform android

And getting the following error:

✖ Config sync failed
[stderr] [04:27:32] [android.dangerous]: withAndroidDangerousBaseMod: Could not add expo-dev-client dependencies to existing file /root/workingdir/build/react-native.config.js. See expo-dev-client installation instructions to add them manually: https://docs.expo.dev/clients/installation/
[stderr] [04:27:32] Error: [android.dangerous]: withAndroidDangerousBaseMod: Could not add expo-dev-client dependencies to existing file /root/workingdir/build/react-native.config.js. See expo-dev-client installation instructions to add them manually: https://docs.expo.dev/clients/installation/
[stderr]     at addReactNativeConfigAsync (/root/workingdir/build/node_modules/expo-dev-client/plugin/build/withDevClient.js:35:19)
[stderr]     at action (/root/workingdir/build/node_modules/@expo/config-plugins/src/plugins/withMod.ts:227:29)
[stderr]     at interceptingMod (/root/workingdir/build/node_modules/@expo/config-plugins/src/plugins/withMod.ts:108:27)
[stderr]     at action (/build/node_modules/@expo/config-plugins/src/plugins/withMod.ts:228:14)
[stderr]     at interceptingMod (/build/node_modules/@expo/config-plugins/src/plugins/withMod.ts:108:21)
[stderr]     at interceptingMod (/build/node_modules/@expo/config-plugins/src/plugins/withMod.ts:108:21)
[stderr]     at interceptingMod (/build/node_modules/@expo/config-plugins/src/plugins/withMod.ts:108:21)
[stderr]     at action (/build/node_modules/@expo/config-plugins/src/plugins/createBaseMod.ts:82:21)
[stderr]     at interceptingMod (/build/node_modules/@expo/config-plugins/src/plugins/withMod.ts:108:21)
[stderr]     at evalModsAsync (/build/node_modules/@expo/config-plugins/src/plugins/mod-compiler.ts:172:25)
[stderr]     at compileModsAsync (/build/node_modules/@expo/config-plugins/src/plugins/mod-compiler.ts:82:10)
[stderr]     at configureManagedProjectAsync (/build/node_modules/expo-cli/src/commands/eject/configureProjectAsync.ts:64:12)
[stderr]     at prebuildAsync (/build/node_modules/expo-cli/src/commands/eject/prebuildAsync.ts:90:21)
[stderr]     at actionAsync (/build/node_modules/expo-cli/src/commands/prebuildAsync.ts:37:3)
node exited with non-zero code: 1


---

`npx ignite-cli doctor` results:
System
  platform           win32        
  arch               x64          
  cpu                8 cores       Intel(R) Core(TM) i7 CPU         950  @ 3.07GHz
  directory          PaymentsApp   C:\Users\razor\projects\PaymentsApp

JavaScript (and globally-installed packages)
  node               16.13.0      C:\Program Files\nodejs\node.EXE
  npm                8.1.0        C:\Program Files\nodejs\npm.CMD
    eas-cli          0.38.2      
    expo-cli         4.13.0      
    prettier         2.4.1       
    yarn             1.22.17     
  yarn               1.22.17      C:\Users\razor\AppData\Roaming\npm\yarn.CMD
    eas-cli          0.38.2      
    expo-cli         4.13.0      

Ignite
  ignite-cli         7.8.0        C:\Users\razor\AppData\Local\npm-cache\_npx\e31027f3785124a8\node_modules\.bin\ignite.CMD
  ignite src         build        C:\Users\razor\AppData\Local\npm-cache\_npx\e31027f3785124a8\node_modules\ignite-cli\build

Android
  java               17.0.1       C:\jdk-17.0.1\bin\java.EXE
  android home       -            undefined

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Reactions:5
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

3reactions
bendoerrcommented, Dec 20, 2021

Hey, I just gave this a try. After a lot of trial and error, turns out you really need expo-cli@5.0.3 at least and \react-native-config.js is problematic.

OK, here is what I did.

  1. I have expo-cli@5.0.3 installed.
  2. npx ignite-cli new <name> --expo
  3. expo upgrade 44
  4. yarn add expo-updates@0.11.2
  5. eas update:configure
  6. eas build:configure
  7. mv .\react-native-config.js .\react-native-config.js.bak Having this in place seems to cause the above error. Looks like removing this we lose the ability to drop fonts in. Still new to all this so it might be something else too.
  8. eas build --profile development --platform android It’ll ask if you want to install expo-dev-client I let it do that.
0reactions
frankcalisecommented, Aug 22, 2022

I’m going to close this issue due to inactivity. However, if this problem still persists and you have updated to the latest version of ignite, please open a new issue stating the problem and the output of npx ignite-cli doctor.

Also, you can check out https://community.infinite.red to get help with us (and a bunch of other RN devs!) directly in Slack.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Common development errors - Expo Documentation
A list of common development errors that are encountered by developers using Expo.
Read more >
5 common errors found in a React Native app (using Expo)
In this article, I will list 5 errors that we as developers faced, while creating a mobile app in React Native (using Expo)...
Read more >
15 Examples of Successful Companies Using React Native in ...
Companies using React Native seek to prioritize performance but also efficiency. Most developers agree that native apps are the way to go when...
Read more >
Expo Dev Client returning a bunch of strings when launching ...
I'm trying to learn react native and as a first step, I've installed expo-cli and set up the environment based on youtube tutorials....
Read more >
Setting up the development environment - React Native
Install the Expo Go app on your iOS or Android phone and connect to the ... If you have a problem with Expo,...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found