Wasp-lang

W

Wasp-lang

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

Join

Installing Reflio affiliate manager

I am trying to install Reflio to handle my affiliate deals. In their walkthrough, in step 6 they ask to install the following JS when a user signs up: ``` <script type="text/javascript"> await Reflio.signup('[email protected]') </script>...

Error: spawnSync /Users/venkatesh/wasp/freelander/app/node_modules/vitest/node_modules/esbuild/bin/e

Hi, I am on MacOS 14.4.1 (23E224), I get the above error when i try to run wasp db migrate-dev Full error below: [ Wasp !] npm error code 1 [ Wasp !] npm error path /Users/venkatesh/wasp/freelander/app/node_modules/vitest/node_modules/esbuild...

Can't open input file .../project-name/node_modules/.bin/prisma when running wasp db migrate-dev

I'm following the tutorial and everything has been working well through step 3 (Pages & Routes). During step 4 I've added the task entity in main.wasp entity Task {=psl id Int @id @default(autoincrement()) description String isDone Boolean @default(false) psl=} ...

Sign up network error

When signing up a new user while running it local, I get an error that states "network error". I'm not sure if this has do do with using WSL and it not connecting to the Postgresql db, but I welcome any feedback!

Trying to globally install Wasp with ZSH

I have been trying to configure my device (MacOS M1 Pro Ventura 13.4) with 'wasp completion'. However, my profile is a zsh profile. I have tried using oh-my-zsh and other ways, but still cant get it to work. I am sure its something obvious, but any help would be super appreciated thanks everyone! #🙋questions

Tailwindcss

How can i properly add tailwind to my project?

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