Open karimcambridge opened 1 year ago
same issue in SDK 48.
i have previously tried to fix apollo error TypeError: Cannot read property 'data' of undefined
by adding exotic mode in metro.config.js
:
const config = getDefaultConfig(__dirname, {
// Initialize in exotic mode.
// If you want to preserve `react-native` resolver main field, and omit cjs support, then leave this undefined
// and skip setting the `EXPO_USE_EXOTIC` environment variable.
mode: 'exotic',
});
https://github.com/apollographql/react-apollo/issues/3922
https://github.com/expo/expo/issues/15860
but then I got experimental syntax
error.
if you are running into the same scenario my way to go was to downgrade apollo/client version and remove exotic mode from metro config.
🐛 Bug Report
On startup, we get this error
SyntaxError in node_modules/@ui-kitten/components/theme/style/styled.js: This experimental syntax requires enabling one of the following parser plugin(s): "jsx", "flow", "typescript". (108:20)
To Reproduce
Steps to reproduce the behavior:
Upgrade your app to SDK 49.
Expected behavior
Link to runnable example or repository (highly encouraged)
UI Kitten and Eva version
Environment information