Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Finished working example? #2

Open
jkoutavas opened this issue Apr 19, 2019 · 1 comment
Open

Finished working example? #2

jkoutavas opened this issue Apr 19, 2019 · 1 comment

Comments

@jkoutavas
Copy link

Great tutorial, thank you.

Any chance of adding the finished app to this repo? As someone new to Amplify integration, I'm trying to follow along with the implementation of the "Sign Out" function, and am getting some runtime errors as I go. Having the completed tutorial's source code would help me find out what I'm missing out on.

@jtquach1
Copy link

jtquach1 commented Apr 30, 2020

Seconded. I think it would also be helpful to have the completed tutorial's source code, especially since there is deprecated code.

In App.js

For instance, import uuid from 'uuid/v4' has been deprecated. I replaced that line with import uuid from "react-uuid"; and was able to continue.

Additionally, I found that I had to have the following 3 lines in order for my app to not throw errors about Amplify not being configured properly:
import Amplify, { Auth } from 'aws-amplify'
import config from './aws-exports'
Amplify.configure(config)

Running in terminal

At the "Adding a function running an express server and invoking it from an API call (http)" step, I got unexpected behavior from running curl 'localhost:3000/coins', even being on Windows (which has curl support).

At the "Interacting with the new API" step, I encountered this error:
Error: Duplicated files or mocks. Please check the console for more info at setModule (C:\Users\Joyce Quach\Documents\GitHub\RNAmplify\node_modules\jest-haste-map\build\index.js:620:17) at workerReply (C:\Users\Joyce Quach\Documents\GitHub\RNAmplify\node_modules\jest-haste-map\build\index.js:691:9) at processTicksAndRejections (internal/process/task_queues.js:97:5) at async Promise.all (index 57)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants