-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Improve experience regarding common mistakes/errors when using Wasp #1971
Comments
Bug Report for specific issues
Idea for improvement of experience of setup related mistakes
|
Thakns for the feedback! So in the first case, your Docker was misconfigured. If docker was missing, you would get an error, so that should already be happening, but it is quite harder for us to figure out if it is somehow misconfigured I am afraid. Would be great if we can be samrter about this and catch some common issues, but it is a bit too much out of the way for us with our current capacity. Still, will keep it in mind. AI generation -> interesting! So usually it does really take like 90 seconds or less. I wonder if it was an issue from the OpenAI side, maybe they were overloaded and requests were taking a long time? Hours sounds impossible hm! I wonder if this is repeatable for you or it was an one-off thing, an outlier. |
Related Discord convo: https://discord.com/channels/686873244791210014/943092165964349500/1229359737322213386 .
There is a whole suite of common mistakes that people get into while trying to use Wasp, especially for the first time, like not having Docker installed, importing server imports in client and vice versa, not setting up env variables, hitting limit on number of files watched, ... .
For a lot of those, we don't have nice error messages -> sometimes they are kind of on spot but overly verbose, while sometimes they are just completely unconnected, e.g. if you try to import non-existing js/ts file in main.wasp, you get "router.js error", which is hard to figure out what it means, or if you import server file in client code you get
process not found
which is also confusing.So, what we want to do is improve the experience around these common mistakes!
There are multiple ways we can do that:
Now, for both of these, we can either try to improve error messages, or we can try to improve the Wasp design itself so it is much harder to make a mistake (e.g. don't allow them at all to import client code in server code). So, better error messages, or better design.
List of specific issues we know about so far:
process not found
).Related: Can we help users distinguish their client and server JS files (and also detect wrong imports in main.wasp)? #1741 .
Ideas for general improvement of experience of setup-related mistakes:
wasp doctor
that analyzes state of the project: Implementwasp doctor
command #1970 .The text was updated successfully, but these errors were encountered: