Wasp

W

Wasp

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

Join

useParam issue

hi i got todo app to work but cant get an app created by mage to work. Here is the error i am seeing in the browser dev console... ChatRoom.jsx:2 Uncaught SyntaxError: The requested module '/@fs/Users/ethan/projects/lisa/mage/.wasp/out/sdk/wasp/dist/client/router/index.js' does not provide an export named 'useParams' (at ChatRoom.jsx:2:10)...

Fly io Region or any alternatives?

I am about to lunch a beta micro saas and i am currently planning to focus Russia + Middle East market but as you see fly io regions has big gap around that area, I haven't played with fly io do you think this is going to be a problem in the future if I use fly io? or do you guys recommend another fullstack hosting platform?
No description

What typescript type for queries that use "include"?

Normal behavior: When my query just returns an object from the database, Wasp automatically includes the proper Typescript type for me, like this: ``` export const getDecks: GetDeck<any, Deck[]> = async (args, context) => { return context.entities.Deck.findMany({ where: {...

How to get auth to trigger on a button

Hey @Kappa, I’m sure you know the answer to this, but I’m working with Wasp and it's pretty easy to require authentication for a page. However, I want my users to be able to access a page (a mechanical engineering calculator), but only require them to log in when they click the "Calculate" button to run the calculation (note i also want to save the inputs so that when they log in they dont lose them). Additionally, I want new users to get 3 free tokens (calculations) before they need to purchase a subscription. Let’s focus on the authentication part for now, but I think Wasp might have a good solution for the token system as well....

Reply to chat socket on insert to DB table or an API call from external service.

My use case is that using the socket given by wasp I have set up a chat bot. Now to respond back the reply message is generated in aother microservice which updates the shared table in postgres. It can also do a API call to any action we write in Wasp. My challenge is how to trigger the socket to emit event and point to correct client as everything is async. has anyone done this before. Please point me to correct examples if possible .

onBeforeSignup not erroring out

How can I break out of the signup process when doing a onBeforeSignup and it returns an error I see this in the documentation
Wasp ignores the hooks' return values. The only exception is the onBeforeOAuthRedirect hook, whose return value affects the OAuth redirect URL.
https://wasp-lang.dev/docs/auth/auth-hooks#using-hooks...

How do I access Prisma Studio for my Wasp app that I've deployed on Fly.io?

Hi all, like the title asks, how can I access the Prisma Studio to view / modify database records for a Wasp app that's been deployed to Fly.io?

error deploying using fly.io

29.21 npm ERR! In file included from ../libusb/libusb/os/linux_usbfs.c:26: 29.21 npm ERR! ../libusb/libusb/os/linux_usbfs.h:24:10: fatal error: linux/magic.h: No such file or directory 29.21 npm ERR! 24 | #include <linux/magic.h> 29.21 npm ERR! | ^~~~~~~ 29.21 npm ERR! compilation terminated....

Accessing request.body from api

Hey there, I would like to access the request.body from an api endpoint. I would like to know what should I wtite in the back end and as well in the main.wasp file in order to retrieve data from the request.body server side....

Server 500 response Timed out fetching a new connection from the connection pool.

2025-01-26T09:07:40.152 app[d890426c46e328] ams [info] POST /operations/get-tracked-product-stats 500 10027.476 ms - 148 2025-01-26T09:07:40.198 app[d890426c46e328] ams [info] PrismaClientKnownRequestError: 2025-01-26T09:07:40.198 app[d890426c46e328] ams [info] Invalid prisma.salesData.findMany() invocation:...

Integration with existing nextjs frontend

Hi everyone, Is it possible to integrate existing nextjs frontend code to opensaas. Any documentation?

npm build error when deploying to fly.io

i am running wasp deploy fly launch player1-app mia [server-builder 8/11] RUN npm install && cd .wasp/build/server && npm install:...

Using appleid for auth

I was wondering is there any support for using Apple for social auth or Facebook?

Can a user sign up confirmation be done with a 6 digit code (instead of only magic link)?

I ask this because some users may be signing up on their phone but their email is on their computer or vice versa. P.S. Thanks again for creating this! Best repo of the last 2 years IMO!...

What are best practices for tweaking caching for react-query through wasp?

Looking for a query usage example that includes caching

multiple client url

Does wasp support multiple frontend url for cors?

Issue with Google Redirect URL while migrating 0.12.4 -> 0.13.0

Hey folks! Decided to migrate my app according to this guide: https://wasp-lang.dev/docs/migration-guides/migrate-from-0-12-to-0-13#migrate-your-oauth-setup. Getting redirect_uri_mismatch, upon further inspection there's a flowName=GeneralOAuthFlow being added at the end of the callback URL which was not the case before. I'm using googleSignInUrl from the auth package Code:...
No description

Is it possible to get extra fields including joins returned from `useAuth`

I.e I want to request user org permissions, which is only available via a join

deploy only client with fly

How do I deploy only the client with fly.io? I already have the server and database setup with fly, but want to migrate the client from Netlify.