Wasp

W

Wasp

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

Join

Unit testing

Hello, Are there any recommended ways for integrating unit testing in a Wasp project? I do have e2e tests via Playwright following the OpenSaaS template approach, but they're slow and expensive to maintain. I'd like to add a layer of unit tests but I don't know if there is any recommended way to do it with Wasp...

Using Opensaas, trying to get Google Auth working but it's giving me a new error.

The error: 'Save failed: user with the same identity already exists'. I have had this working before so not sure what's happened. I have followed instructions and documentation to the letter fro mscratch to try and fix - no joy so far.

custom auth actions -> Instructions don't work

Hi team, I've started working on my account based login with multiple users. The first step is to test the sign so I can add account creation. I've started following these steps: https://wasp.sh/docs/auth/advanced/custom-auth-actions MY Steps: Add call to WASP code, added signup.tsx, added a new customsignupPage....

problems with entities

Wasp Version: 0.16.0 Platform: WSL2 (Linux 5.15.167.4-microsoft-standard-WSL2) I'm adding a new Vendor entity to my existing project and encountering compilation errors and migration issues: ...

Process to start development version of Wasp

I want to know how i can start development version of Wasp , current i am using wsl -> git clone "url" then cd wasp after that go to desired folder and wasp start , but for the issue #2798 (https://github.com/wasp-lang/wasp/issues/2798) i am not getting the bug mentioned , you can read the thread for more info THANKS

Setting up email sending functionality

I'm trying to set up a simple functionality for sending email notifications. Basically, from the frontend, I want to send a notification when an action occurs. My approach was to create an api function called sendNotifications(), add it to main.wasp, then call it from the frontend as await sendNotifications(to,from,subject,message). The thing is that I need to retrieve some data from the database to add to the body of the email in the backend, so the sendNotification() function should include calls to the db (either context.entity.TableName.... or by calling the 'operational' functions). Should the sendNotification() be in the operations file, or as an api call? Please show me an example of the best way to implement this...

custom sign up ui

creating custom ui for sign up but the signup() is only have 2 params email and password and i need to have a additional field and need to pass it how can i add

Wasp Studio Crashing On All Apps

I think this is likely to be an issue with my setup, but every time I try and run wasp studio on a wasp app, I'm getting this error - any ideas @kapa.ai ? wasp studio ✨ Starting Wasp Studio ✨ ...

Main.wasp in GH action

In going through the steps to convert to the wasp.ts, I ran the wasp ts-setup command, which added the devDep to my package.json for wasp-config. If I run wasp clean, I have to run npm install, and then wasp build, and everything builds fine. But when I try to deploy it to coolify with the example deploy.yml, then wasp build errors out for me in the github action saying: ``` 🐝 --- Building wasp project... --------------------------------------------------- [ Wasp ] main.wasp.ts(1,21): error TS2307: Cannot find module 'wasp-config' or its corresponding type declarations....

railway up: Failed to upload code with status code 403 Forbidden

I did as always: wasp build cd .wasp/build railway up ...

custom signup form

I have created a custom signup form that just asks for email and password. It uses the email as the username. The user is created successfully in the database. After calling await signup({ email, password, username: email }); I call await login(email, password); I would expect Wasp's hSucceededRedirectTo to take over at this point. However, the browser stays on the signup page. If I click on a protected page, I am able to load it correctly (i.e. the user is actually logged in). How should the redirect actually work after authentication?...

webSocket module not found

I'm experimenting with web sockets and ran into an unexpected error: error TS2307: Cannot find module 'wasp/server/webSocket' or its corresponding type declarations. As shown in the attached screen grab, the webSocket module is indeed missing. I've tried wasp clean to no avail. Running Wasp 0.16.3...
No description

Wasp not found after installing Wasp

I'm trying to start with the Open-SaaS but for some reason after I do "curl -sSL https://get.wasp.sh/installer.sh | sh" on WSL and then I type "wasp version" it then says "wasp: command not found". What I'm I doing wrong here?...

One time payment?

I am making a saas that will have a one time payment fee . Is this possible?

how to connect to fly database using pgadmin?

i try to connect to my fly db using pgadmin 4, i proxy my database with: fly proxy 5432 -a <app> then i fill in these in pgadmin under add server: host: localhost...

Why does SendGrid break my app

Hi All, new to the discord, read all the Email blogs and documentation but still can't solve this one. I've created a a very simply button to test email, when have Provider: Dummy and click the email, I get the email contents in the webpage console. HOWEVER, when I change Provider: SendGrid, then add SENDGRID_API_KEY to env.server , not pages load on my app anymore and the console, spits out the following error: env.ts:71 Uncaught ReferenceError: process is not defined...

Chakra UI V3 styles not being applied in wasp app

I've migrated to chakra ui v3, but I am not getting any styles correctly appearing as they are in the chakra demo. I've applied all the migration instructions, and wrapped my app in a provider (in app.tsx) ```'use client'; import { ChakraProvider, defaultSystem } from '@chakra-ui/react';...

is there a way to enable entities with lowercase

i want to create my entities that are starting with lowercase so as to make app with already present db. I was able to create prisma schema using prisma db pull but wasp app does not allow entities that start with lowercase

RollupError: Invalid value for option "output.file"

`` [ Server ] [nodemon] 2.0.22 [ Server ] [nodemon] to restart at any time, enter rs` [ Server ] [nodemon] watching path(s): src//* ../../../src//* .env [ Server ] [nodemon] watching extensions: ts,mts,js,mjs,json...

Is LS down right now or have I made a mistake?

Hi, I've been working on a project with OpenSaaS and I implemented payment and everything was fine. After adding some other things that didn't touch the payment system at all (I checked every code change manually even though only a small portion was written by AI), I wanted to test it out again. I now get this error that says:...