Wasp-lang

W

Wasp-lang

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

Join

using ai after project creation

Can i use gpt like in wasp new but i'm existing project? I want to just type prompt like "add admin dashboard" then it automatically updates files without me

deployment issues

Hi! I’ve deployed my project on fly.io but the issue is beyond the landing page auth isn’t working. I followed the doc instructions. Perhaps the Prisma DB didn’t deploy? Is there an easy way to see the log and debug? My deployment: https://supastage-client.fly.dev Thanks for the help....

Custom authRequired = true

I want to be able to check if a user has paid ("isActive" in db) before going into a specific page Ideally, I do not want to add it at the beginning of each page Do you have someting to maybe custom the authRequired in .wasp ? Or do you plan to add certain Layouts maybe? ...

Problems with imports from WASP

I'm getting this strange with imports from wasp, it says it cannot find a module. I'm Golang developer so frontend tooling isn't that well know for me, and I'm not sure what to do :/

How to implement Company Based Custom Auth For OpenSaaS ?

I want to make enterprise SAAS. First user registers a company on the first sign up who is super admin. Then Super Admin can Register other users providing then other roles like systemadmin,user,customer etc.

Modification of sing up. Add additional fields in sing up form and user entity.

Hi, I need to extend the user model to include first name and last name. I will update the user model in main.wasp. Additionally, how can I update the sign-up form to include the new fields?...

white screen, how to debug?

While trying to get my feet wet in React and Wasp I now face a white screen after wasp start... The browsers states: "You need to enable JavaScript to run this app." although javascript is enabled. I found wasp clean acts like turning it of and on, so tried that. After wasp start again I now have the 'wasp/client/operations" missing...

Bug wasp db studio

I have very often this when I run wasp db studio : [ Db ] Environment variables loaded from .env [ Db ] Prisma schema loaded from ../db/schema.prisma [ Db ] Prisma Studio is up on http://localhost:5555...

Best practice for adding properties to User entity?

I'm looking at adding a property called isCreator to the existing user entity that comes with OpenSaaS, but when I do it and attempt to migrate the db I get this error
[ Wasp ] ext-src/server/scripts/usersSeed.ts(10,9): error TS2741: Property 'isCreator' is missing in type '{ email: string; username: string; createdAt: Date; lastActiveTimestamp: Date; isAdmin: false; stripeId: string; sendEmail: false; subscriptionStatus: string; datePaid: Date; credits: number; checkoutSessionId: null; subscriptionTier: TierIds; }' but required in type 'Omit<GetResult<{ id: number; email: string; username: string; createdAt: Date; lastActiveTimestamp: Date; isAdmin: boolean; stripeId: string; checkoutSessionId: string; subscriptionTier: string; ... 4 more ...; isCreator: boolean; }, unknown> & {}, "id">'.
[ Wasp ] ext-src/server/scripts/usersSeed.ts(10,9): error TS2741: Property 'isCreator' is missing in type '{ email: string; username: string; createdAt: Date; lastActiveTimestamp: Date; isAdmin: false; stripeId: string; sendEmail: false; subscriptionStatus: string; datePaid: Date; credits: number; checkoutSessionId: null; subscriptionTier: TierIds; }' but required in type 'Omit<GetResult<{ id: number; email: string; username: string; createdAt: Date; lastActiveTimestamp: Date; isAdmin: boolean; stripeId: string; checkoutSessionId: string; subscriptionTier: string; ... 4 more ...; isCreator: boolean; }, unknown> & {}, "id">'.
I'm sure it's something I've done wrong as I am not to familiar with prisma!...

database migration error

when I updated prisma, it needs to do db migration, but every time it needs to erease everything, is there a way that only update what has been changed instead of recreate the whole db? Environment variables loaded from .env Prisma schema loaded from ../db/schema.prisma Datasource "db": PostgreSQL database "postgres", schema "public" at "xx.xx.xx.xx:5432"...

Context entities in a query

First steps in Wasp-lang coming from PHP Trying to get to know Wasp-lang I'm working on a job list, where users can post jobs. So in entity Job i have userId and User as relation. Passing the user entity with the job in the getJobs query...
No description

just created new app, trying to create first user, user.create is failing

Obviously I could try to debug this, but was surprised it failed on the first db interaction. Any ideas? Node v18.20.2 Wasp 0.13.2...
No description

"No Exported Member" Prisma Issues occurring after reinstalled dependencies w/SDK exit code 2

Hey, after running reinstalling dependencies I've had a number of issues suddenly come up, with several wasp warnings (all around prisma seemingly), and sdk build failing with exit code 2. I've gone back and copied the exact package json used in the open saas template to make sure it's not an issue with a wrong dependency version but even with 1:1 replication it still fails...

Anyone got RAG working with WASP?

My current approach is to use langchains build in vector storage but i want the vector data to be stored in Postgre database that WASP makes. - crappy coder that uses AI to code religiously

Error while seeding DB any ideas how to solve? #p2021

[ Db ] Environment variables loaded from .env [ Db ] Running seed command npm run db-seed ... [ Db ] [ Db ] > [email protected] db-seed [ Db ] > npm run bundle && node --enable-source-maps -r dotenv/config bundle/dbSeed.js...

affiliate program integration

Is there a solution for integrate affiliate program into opensaas? I'm looking at rewardful with stripe, or is there any more generic way to integrate affiliate program into wasp? Thank you. @miho @kapa.ai...

Hello! thanks! I'm debugging a deployment with an additional Dockerfile

I'm not seeing the logging and I'm wondering if it's ending up elsewhere? I can see the added docker info in 'wasp dockerfile' but my logging doesn't show up. I'm also curious if docker-compose file will be executed as well? would I be better off running separate containers on the server?

routing

I added this route to main.wasp, route QuizRoute { path: "/quiz/:id", to: QuizPage } page QuizPage { authRequired: true, component: import DemoAppPage from "@src/client/app/QuizPage"...

Error 400: redirect_uri_mismatch

Hi guys, I am pretty new to using wasp and web development in general. I am using the open.saas template that's available, and was on the google authentication part (I was following a youtube tutorial), and I did exactly what the documentation said, however, i am getting the " Error 400: redirect_uri_mismatch " when I click on the "Login in via Google" button. I have attached the 2 images of what the login page looks like, and the aftermath. I can't figure out what the issue is, as I have done everything I could have thought of. ...
No description

Deploy the app i build with wasp open-saas to self hosted (VPS)

I am considering deploy the app i will be building to a VPS. Did anyone try it already that can give some tips...