Anyone tried to create an expo dev client against an ignited app? I'm getting this error....
See original GitHub issueI 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:
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:
- Created 2 years ago
- Reactions:5
- Comments:5 (2 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
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.
expo-cli@5.0.3
installed.npx ignite-cli new <name> --expo
expo upgrade 44
yarn add expo-updates@0.11.2
eas update:configure
eas build:configure
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.eas build --profile development --platform android
It’ll ask if you want to installexpo-dev-client
I let it do that.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.