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
For a small bug reproduction I setup a new project with a custom frontend from scratch using mu project new project-name and edi ember new frontend-name. After wiring everything up I couldn't get resources data in the frontend and was hit with a confusing error: You tried to push data with a type 'agents' but no model could be found with that name.
After cross-referencing the setup in Kaleidos I realized I needed to set the default application serializer to JSONAPISerializer. I probably would've also found it if I went to check the Ember documentation, but I'd have to know by heart that it's related to the serializer.
I wonder if instead we could add this to whatever README/tutorial is presented to people creating an Ember app for a semantic.works stack? Perhaps we could even add a mu frontend new command to mu-cli that wraps ember new and adds the default stuff needed for our stack to work?
The text was updated successfully, but these errors were encountered:
sergiofenoll
changed the title
Setting an Ember project from scratch that works with resources is a bit convoluted
Setting up an Ember project from scratch that works with resources is a bit convoluted
Nov 30, 2023
For a small bug reproduction I setup a new project with a custom frontend from scratch using
mu project new project-name
andedi ember new frontend-name
. After wiring everything up I couldn't get resources data in the frontend and was hit with a confusing error:You tried to push data with a type 'agents' but no model could be found with that name
.After cross-referencing the setup in Kaleidos I realized I needed to set the default application serializer to
JSONAPISerializer
. I probably would've also found it if I went to check the Ember documentation, but I'd have to know by heart that it's related to the serializer.I wonder if instead we could add this to whatever README/tutorial is presented to people creating an Ember app for a semantic.works stack? Perhaps we could even add a
mu frontend new
command to mu-cli that wrapsember new
and adds the default stuff needed for our stack to work?The text was updated successfully, but these errors were encountered: