You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I got the following error when using aws-appsync, and it looks like a bug of redux-offline.
Does "aws-appsync": "^3.0.3" working with expo version 37? Or I have to downgrade to version 36?
=========================================================
[Unhandled promise rejection: TypeError: _netinfo.default.getConnectionInfo is not a function. (In '_netinfo.default.getConnectionInfo()', '_netinfo.default.getConnectionInfo' is undefined)]
node_modules/@redux-offline/redux-offline/lib/defaults/detectNetwork.native.js:96:14 in _callee2$
node_modules/regenerator-runtime/runtime.js:45:44 in tryCatch
node_modules/regenerator-runtime/runtime.js:274:30 in invoke
node_modules/@babel/runtime/helpers/asyncToGenerator.js:2:6 in asyncGeneratorStep
node_modules/@babel/runtime/helpers/asyncToGenerator.js:24:6 in _next
node_modules/@react-native-community/netinfo/src/internal/internetReachability.ts:119:36 in Promise.race.then.then._catch$argument_0
node_modules/promise/setimmediate/core.js:37:14 in tryCallOne
node_modules/promise/setimmediate/core.js:123:25 in setImmediate$argument_0
node_modules/react-native/Libraries/Core/Timers/JSTimers.js:146:14 in _callTimer
node_modules/react-native/Libraries/Core/Timers/JSTimers.js:194:17 in _callImmediatesPass
node_modules/react-native/Libraries/Core/Timers/JSTimers.js:458:30 in callImmediates
[native code]:null in callImmediates
node_modules/react-native/Libraries/BatchedBridge/MessageQueue.js:407:6 in __callImmediates
node_modules/react-native/Libraries/BatchedBridge/MessageQueue.js:143:6 in __guard$argument_0
node_modules/react-native/Libraries/BatchedBridge/MessageQueue.js:384:10 in __guard
node_modules/react-native/Libraries/BatchedBridge/MessageQueue.js:142:17 in __guard$argument_0
[native code]:null in flushedQueue
[native code]:null in callFunctionReturnFlushedQueue
I am using
"expo": "~37.0.3",
"aws-appsync": "^3.0.3",
"aws-appsync-react": "^3.0.3",
"react-apollo": "2.5.8",
"@react-native-community/netinfo": "5.5.0".
The text was updated successfully, but these errors were encountered:
@yunau That’s because no one underlined the importance of the version of @react-native-community/netinfo which should be exactly 4.7.0. This library hasn’t been updated to support the latest version sadly.
Hi team,
I got the following error when using aws-appsync, and it looks like a bug of redux-offline.
Does "aws-appsync": "^3.0.3" working with expo version 37? Or I have to downgrade to version 36?
Other people have the same issue.
aws-amplify/amplify-js#5359
=========================================================
[Unhandled promise rejection: TypeError: _netinfo.default.getConnectionInfo is not a function. (In '_netinfo.default.getConnectionInfo()', '_netinfo.default.getConnectionInfo' is undefined)]
[Unhandled promise rejection: TypeError: undefined is not an object (evaluating 'netinfo_1.default.isConnected.fetch')]
[Unhandled promise rejection: TypeError: handler is not a function. (In 'handler(nextState)', 'handler' is "connectionChange")]
I am using
"expo": "~37.0.3",
"aws-appsync": "^3.0.3",
"aws-appsync-react": "^3.0.3",
"react-apollo": "2.5.8",
"@react-native-community/netinfo": "5.5.0".
The text was updated successfully, but these errors were encountered: