Closed Jinyoung3 closed 2 months ago
Hi @Jinyoung3 👋 Thank you for raising this issue!
Did you mean to share the schema twice? It seems like you might have the schema defined in two separate files, once in the data/resource.ts file and again in a type.ts file?
In any case, it isn't clear if you have called Amplify.configure()
. That has to be called before generateClient
for client.models.*
to be defined and type complete.
Can you make sure that you are configuring Amplify somewhere higher in the component tree? Ideally at the earliest point the app renders, typically in an entry point file such as App.tsx.
Hi 👋 Closing this as we have not heard back from you. If you are still experiencing this issue and in need of assistance, please feel free to comment and provide us with any information previously requested by our team members so we can re-open this issue and be better able to assist you.
Thank you!
Before opening, please confirm:
JavaScript Framework
React Native
Amplify APIs
GraphQL API
Amplify Version
v6
Amplify Categories
No response
Backend
Amplify Gen 2 (Preview)
Environment information
Describe the bug
Expected behavior
I get error saying create is undefined. I printed out the textinputs but they are correct so I don't know what the issue is.
Reproduction steps
https://github.com/Jinyoung3/awsman.git this is my github depository you can just git clone that URL and the issue is from profile.tsx
Code Snippet
Log output
aws-exports.js
No response
Manual configuration
No response
Additional configuration
No response
Mobile Device
No response
Mobile Operating System
No response
Mobile Browser
No response
Mobile Browser Version
No response
Additional information and screenshots
No response