expo / fyi

Little bits of information that you may find useful when interacting with Expo tools and service. Append the markdown filename to https://expo.fyi/ to get a quick link to it.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Applying the migrating recommandation does not work, reproducable and simple example

aymeric75 opened this issue · comments

Hello,

I am trying to apply the directives from here. I am working on Windows and my Target IOS is Android.

Here is what I have done:

npx react-native init BareAwesomeProjectBis --version 0.64

Then I went in package.json but I did not see any react-native-unimodules

Then, since I don't think I have Expo (my goal was actually not to use Expo), I went on with:

npm install expo

But it showed a message :

"Unable to validate configuration." 
Property 'expo' in `app.json` for project at path C:\Users\aymer\Desktop\BareAwesomeProjectBis is not an object. Please make sure `app.json` includes a managed Expo app config like thi
s: {"expo":{"name":"My app","slug":"my-app","sdkVersion":"..."}}
Updating your app.json to account for breaking changes (if applicable)...

But I did not see any change in my app.json, so I updated it myself like this:

{
  "expo": {
    "sdkVersion": "43.0.0"
  },
  "name": "BareAwesomeProjectBis",
  "displayName": "BareAwesomeProjectBis"
}

But then when I ran:

expo upgrade 43

I got:

? What would you like your Android package name to be? » Uncaught Error Error: EPERM: operation not permitted, rename 'C:\Users\aymer\.expo\state.json.2919037473' -> 'C:\Users\aymer\.e
xpo\state.json'

As you can see, I did nothing crazy...

Help would be much appreciated!

Thanks