-
Notifications
You must be signed in to change notification settings - Fork 62
Syntax error in AWSCognitoCredentials #20
Comments
+1 SyntaxError /Users/jschimmoeller/projects/eaddr/node_modules/aws-sdk-react-native-core/src/AWSCognitoCredentials.js: Unexpected token, expected , (48:57) RCTFatal + 104 |
I changed the brackets {} to () and got by it:
|
@jschimmoeller that doesn't destructure callbackId from the event though, so even though it's syntactically correct, it'll probably give you errors if it ever gets called. |
@jschimmoeller that's how I fixed it. I didn't post a fix when I first encountered it because I thought it was my own babel issue. Is AWS taking this project seriously? Doubtful, but hopeful. |
I'm getting a syntax error on this line.
If I understand correctly, it's destructuring callbackId from event, then passing that on to the arrow function. However, is this the correct syntax? I've just updated to the latest React Native version, and it still gives me the error.
Would this fix it?
The text was updated successfully, but these errors were encountered: