Wasp-lang

W

Wasp-lang

Join the community to ask questions about Wasp-lang and get answers from other members.

Join

Need help incorporating existing project into this template

hi guys, this is my first time using Wasp, how do i incorporate my existing project into this template?

SubscriptionStatus and subscriptoinTier not getting updated in stripe test mode.

The subscription status and tier are not getting updated on default in stripe test mode. Is this expected behaviour? Will it work in the live mode, or does it have to be set up first?...

type declarations

Cannot find module 'wasp/client/router' or its corresponding type declarations.ts(2307) how do i download the type declarations...

Github actions failing with "OpenAI API key not set"

Tests work in development but failing in Github. Checking doc to determine how to safely provide keys. ```[WebServer] [app][err] [ Server!] OpenAI API key not set. Please set the OPENAI_API_KEY environment variable. [WebServer] [app][err] [ Server!] /home/runner/work/mysponsorapp-wasp/mysponsorapp-wasp/app/src/server/actions.ts:76 [WebServer] [app][err] [ Server!] throw new HttpError(500, "OpenAI API key not set. Please set the OPENAI_API_KEY environment variable."); [WebServer] [app][err] [ Server!] ^...

Migrate db in Production fly.io

Given that I have a wasp app I deployed to fly.io, what are the steps I need to do to make sure changes to entity schemas are reflected in Production database? Additional questions: 1. Has anyone deployed db changes to an already deployed app and can share common pitfalls? 2. Is there a wasp db migrate-dev equivalent such as wasp db migrate-prod?...

fly.io frontend keeps crashing

hey folks, my fly.io deployed app keeps crashing, not sure why, I don't even know how to begin investigating why it keeps crashing, it says its suspended in the fly.io dashboard and these are some recent logs

user.subscriptionStatus and user.subscriptionTier are not set

I've set up Stripe and can buy the test product using the right price ID. User.StripeId and User.CheckoutSessionId are properly set in the database. I successfully get to /checkout?success=true afterwards. But user.subscriptionStatus and user.subscriptionTier are not set. I've also checked the event data in Stripe, for example the checkout.session.completed is properly shown. ...

Link Components having typescript errors when linking to a path with a slug

When I try and use the "to" prop of a Link component, I get a typescript error on wasp start saying that it is not of the correct type if it contains a slug - eg profile/123 fails as the 123 is dynamic. What's the best way around this?

How can I put the production website behind a password like a staging area?

I have the site deployed on fly.io as i need it live for some testing. How can I put it behind a password so its not publically available to anybode?...

Getting stuck at Setting up database after configuring external postgresdb

I am in dev and have entered a postgresql hosted with supabase in .env.server. I have tested the connectoin through terminal and it works without problem. I ran the following commands: rm -r migrations/...

How to redirect from www to non www

Hi everyone, I have this little problem that sometimes some websites redirect my non www website to a www version, and because of the wasp web client url (I guess that's the reason why) being set to non www, the backend won't work, and it throws CORS errors. What do you suggest?

Login does not work after verifying with the link

Wasp version: 0.13.2 The problem happens both on local development and production mode in Fly.io The password set on Sign Up is not working after verifying in the link. But it works if I reset the password. I used the command wasp new with the option [3] as a head start. It worked in the beginning but it stopped....
No description

Error running the Todo App

Hi there, I have completed the tutorial for the TodoApp, but when I try to run the app I get an error (see attached). I realised that I had made an error in the MainPage.jsx file, so to be on the safe side I copied the code from the Wasp Github repository. But I'm still getting this error and am not sure why or where I should look to avoid it....
No description

Error when trying to add authentication

Hiya, I'm following the steps outlined in the Wasp tutorial to create a Todo app. I got to the final step, adding authentication (https://wasp-lang.dev/docs/tutorial/auth). I created a user entity successfully. However, in the next step (adding auth to the project), when I try to update the database schema by typing "wasp db migrate-dev" in my terminal, I get an error message saying "Complication of wasp project failed" (see attached)....
No description

Prisma Error Handling

I have a combination ID on a table to enforce uniqueness of entity relations. I would like to send the user a message based on the error returned by Prisma. Normally, Prisma library provides errors to handle this: https://www.prisma.io/docs/orm/prisma-client/debugging-and-troubleshooting/handling-exceptions-and-errors However, I am unable to import these Prisma errors to my server code. Is there a way to do this? Thanks....

Configure vite to resolve @ alias to src directory

Tried configuring like this and vscode seems happy with the path resolution but wasp doesn't, what am I missing? ``` // =============================== IMPORTANT ================================= //...

db seed verified email

I migrated from username auth to email. the email auth requires email verification. Now, when i seed the database, the Users that I created have unverified emails. How can I verify the emails of the records i see in the database during db seed?

Error on sending email to veirify account

It works on localhost (Dummy, Sendgrid and SMTP), I create an account and get the token link. But when trying to create an account after deploying on Fly.io wasp deploy fly launch <name> iad it doesn't work. Here are the browser console and network. The network returned 200 for the auth/email/signup and 204 for the preflight. The console only show unauthorized (401) on /auth/me, I think this was expected since I'm not logged in yet. The server logs returned ECONNREFUSED and __node_internal_exceptionWithHostPort on the port 587. That's not the port I configured in the .env.server file...
No description