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

Setting up an Ember project from scratch that works with resources is a bit convoluted #9

Open
sergiofenoll opened this issue Nov 30, 2023 · 1 comment

Comments

@sergiofenoll
Copy link

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?

@sergiofenoll 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
@sergiofenoll
Copy link
Author

From @erikap in a Rocket.Chat discussion:

for people running into the same error in the future
edi ember g serializer application

Perhaps we could add this to the README of https://github.com/mu-semtech/mu-project or the output of mu project new app-NAME.

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

1 participant