Migrate Waspello to 0.14.0 not functioning
Hello everyone, I pulled the updated repository that migrate Waspello to 0.14.0. I tried to add the definition of entities including 'User' from schema.prisma to main.wasp, but it still not functioning properly. Could anyone check if there are any steps I've missed? Any additional guidance or suggestions would be greatly appreciated. Thank you!
10 Replies
Hi @Jiawei. I'm kapa.ai, your friendly support bot. I will try to answer your question by searching through the knowledge base. :wave:
----------------------
Based on the information provided, it's hard to pinpoint the exact issue without more details. However, here are some general steps you can follow when migrating to a new version of Wasp:
1. Ensure you have followed the migration guide for the specific version you are migrating to. For example, if you are migrating from 0.11.X to 0.13.X, you should first migrate to 0.12.X and then to 0.13.X. Each version might have specific steps that need to be followed. Unfortunately, I don't have the migration guide for 0.14.0 in the provided sources. You can check the official Wasp documentation for that.
2. When defining entities in
main.wasp
, make sure you have defined all necessary fields. For example, a simple User
entity might look like this:
(Source: Wasp Auth Docs (https://wasp-lang.dev/docs/auth/username-and-pass#2-add-the-user-entity))
3. If you have made changes to your main.wasp
file, make sure to run wasp db migrate-dev
to apply these changes to the database.
4. If you are facing issues with relations between entities, ensure you have defined the relations correctly. For example, a one-to-many relation between User
and PurchaseRequest
might look like this:
(Source: Discord Support Thread (https://discord.com/channels/686873244791210014/1217557267663159346))
If you are still facing issues, it would be helpful if you could provide more details about the specific errors or problems you are encountering.
----------------------
Note: you can ask me a follow up question by @ mentioning me again :speech_balloon:
----------------------
Sorry @Jiawei, I seem to be having a bit of trouble. Don't worry though, I've pinged my support and they will try to fix me up! :technologist:
Perhaps try again in 15mins?To add up on the question, we added the entity back to main file, then see the user.identities undefined, so we modified the code to user.auth.identities.
Wonder if there is any new steps needed to spin up swapello with this new version?
Did you install the Wasp 0.14.0 RC version? What does
wasp version
output for you?I am using 0.13.2, could you guide me on how to install 0.14.0RC, thank you.
You can append the version after the install command like so:
Keep in mind, this is a test version and there might be bugs.
It works! Thank you😁
@Jiawei Iam curious, how did you end up wanting to try 0.14, taking into accoutn it is still not released?
I am working on the issue of waspello (https://github.com/wasp-lang/wasp/issues/338) with @YxY , the recent change requires 0.14 to run waspello. Since wasp 0.14 also has trouble, we are now using 0.13.2 and code from last week. Do you have any concerns on it?
GitHub
[example/Waspello] Make list tilt while dragged'n'dropped like in T...
This is how it works in Trello: This is in Waspello: NOTE: For the implementation of drag'n'drop functionality in Waspello, we are using react-beautiful-dnd maintained by Atlassian (which o...
Wohooo @Jiawei, you just became a Waspeteer level 1!
Nope, that is all right! Thanks for the explanation!