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
Failed to instantiate data construct
Caused By: Uni-directional relationships are not supported. Add a @belongsTo field in Task to match the @hasMany field Task.children
Resolution: See the underlying error message for more details.
Expected behavior
It should work properly, it was working before update
Hi @MarlonJD, Thank you for raising this. We can replicate the issue by using the Schema in the description. Hence, Marking this as a bug for the team to evaluate further.
This issue is now closed. Comments on closed issues are hard for our team to see.
If you need more assistance, please open a new issue that references this one.
How did you install the Amplify CLI?
npm
If applicable, what version of Node.js are you using?
v21.5.0
Amplify CLI Version
1.0.1
What operating system are you using?
MacOS
Did you make any manual changes to the cloud resources managed by Amplify? Please describe the changes made.
No
Describe the bug
When I try to create self-referenced models, it gives error:
Model:
Error on
npx ampx sandbox
Expected behavior
It should work properly, it was working before update
Reproduction steps
Create Task model with these:
and try to generate models
npx ampx sandbox
Project Identifier
No response
Log output
Additional information
No response
Before submitting, please confirm:
The text was updated successfully, but these errors were encountered: