Open michael-trinity opened 2 weeks ago
Hi @michael-trinity , thanks for raising this issue 👋
I tried deploying a Gen 1 amplify app with the schema that was described not to work, enabled DataStore, generated models, and imported the models in my front end code but was not able to reproduce the issue.
can you share a bit more about where you are importing the models in your Vue app?
Or, would you be able to provide a small sample repo with a Vue app that reproduces the issue consistently? The error message unfortunately doesn't provide enough info to infer what about the schema might be causing an issue.
Before opening, please confirm:
JavaScript Framework
Vue
Amplify APIs
DataStore
Amplify Version
v6
Amplify Categories
Not applicable
Backend
Amplify CLI
Environment information
Describe the bug
When using
amplify codegen models
and importing them into my code it will result in an errorThis is my full grapql schema generated by Amplify Studio
However if I just use Artist and then generate the models it will work
I will include the files that work and don't work that are generated
models-works.zip models-dontwork.zip
Expected behavior
When using codegen on a schema made with studio it should properly work when importing them to use with DataStore
Reproduction steps
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