I believe this is usually a problem with Babel which might make sense here as SDK31 added support for Babel 7. Did you have custom babel settings? If so, can you make sure you’ve upgraded to babel-preset-expo@5. If you didn’t have any custom settings, I would peruse these issues and see if anything helps.
Hi Adam.
Thanks for your suggestion.
I don’t have any custom babel settings. And all those issues your link leads to are regarding custom babel settings, so I’m not sure how to fix this regarding Expo SDK.
I think the next best step would be to try creating a fresh Expo project with expo init and seeing if it throws the error. If it doesn’t, I’m thinking it may be related to a dependency in your main project. I would then go ahead and add a dependency one by one and see if that helps track down the culprit.