Wasp

W

Wasp

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

Join

OpenSaaS serverside actions/queries problem

Hi, I am using wasp version 0.16.0 and the openSaaS tempalte on linux and I am experiencing some troubles using queries/actions on the server side. To reproduce: -create a new folder in src (let say /error. -make @src/error/queries.js file with this code; ```const tasks = [...

Your wasp project failed to compile

- The "include" field is missing in tsconfig.json, you must set it to: ["src"]. - Invalid value for the "compilerOptions.outDir" field in tsconfig.json, you must set it to: ".wasp/out/user". - The "compilerOptions.composite" field is missing in tsconfig.json, you must set it to: true. - The "compilerOptions.skipLibCheck" field is missing in tsconfig.json, you must set it to: true....

Can't get apiNamespace working in OpenSaas

Trying to set up API namespace, but curl -v http://localhost:3000/api/ returns landing page HTML instead of hitting my API. main.wasp ``` apiNamespace api {...

Wasp API Route Not Found (404) for Langflow Integration in GitHub Codespaces

šŸ“Œ Wasp API Route Not Found (404) for Langflow Integration in GitHub Codespaces Hey everyone,
I'm working on integrating Langflow into my Wasp (v0.16.0) project inside a GitHub Codespace, but I'm running into a 404 Not Found issue when my frontend tries to call the API route. ...

Mage app not working

this is the error šŸ --- Starting compilation and setup phase. Hold tight... ------------------------ šŸ --- Compiling wasp project... -------------------------------------------------- ...

Email not sending on production

Hey, I'm using the OpenSaaS template and Wasp 0.15, running on a self-hosted Coolify instance. When I sign up on my dev machine, I receive a verification email just fine. When I sign up in production (with the same env vars), no email is sent. I don't see anything in the logs regarding emails. Only on the client, there's a 10:52AM DBG Request Handled Method=POST Path=/auth/email/signup line. I've tried with both SMTP and Mailgun providers. When I look at the SMTP provider and Mailgun logs it looks as though they haven't received the request. I ran a test script from the wasp server docker container to see if it could be a networking issue, but there I do receive the email just fine. Test script: ``` import { emailSender } from "wasp/server/email";...

wasp deploy fly deploy has caused importing issues

i ran wasp clean and wasp start, when doing so i get lots of import errors, and then build fails with. Any Ideas? [ Wasp ] ext-src/landing-page/contentSections.ts(2,24): error TS2307: Cannot find module '../../.wasp/out/sdk/wasp/client/router' or its corresponding type declarations....
No description

CORS issue - wasp 0.13

Basically we are getting a lot of CORS issues, such as: ``` Failed to load resource: the server responded with a status of 401 () Origin https://wislearn.io is not allowed by Access-Control-Allow-Origin. Status code: 504...

install particular version of wasp

My application is still on version 0.14 and would like to install this version on new machine. But cannot find documentaiton for this

Wasp 0.16 deployment in fly.io issue

getting an issue in deployment using the version 0.16.0 tried to follow this instruction https://wasp-lang.dev/docs/deployment/deployment-methods/paas#redeploying-after-wasp-builds even tried to delete my custom docker file...
No description

Fly Docker Deployment Issue With V.16.0

This is a loom from one of my developers showing the issue: https://www.loom.com/share/c28d12803ef04178af585a244416702a?sid=e7852fb7-c76c-4c92-a111-c0534c991cc3 This only happened after updating to V16.0 ...

production database

How do i access my production database locally? This never seems to work even when I follow the guides. If i set the .env as my production url, and also tunnel with fly.io, I can't run wasp db studio because it says 'The database needs to be running in order to execute this command. You can easily start a managed dev database with wasp start db.

Google Auth Custom Fields (not available from Google)

Hi! I would like to require some extra fields for the user to fill in during the sign up process, even if they are using Google Auth. I've checked the Auth hooks, but as I'm assuming I'd need an extra page in the process, I'm not sure this is what I need. What would you suggest to achieve this?...

Deployed to fly.io and it auto-deployed with redis. How?

I have an app deployed without redis. I just tried deploying a new version of it with redis wried up to a new org to test it out and it auto-detected redis and created an upstash redis machine. How does it do this? Will it automatically do this if I re-deploy my existing app that doesn't have redis wired up yet?

Is it possible to inject custom data into the context object with middleware?

I'm looking to implement the concept of Organizations with Roles and Permissions. I've seen this gist linked in a few discussions which seems like a nice starting point for how to organize the DB schema. I'm trying to figure out the best way to implement the backend. My current thought is to write custom middleware to check the user's selected organization and enrich the context object with the user's role and permissions to be passed into my Queries and Actions. If the user is not enrolled in the organization then the middleware would reject the request. Is this possible with Wasp? If not, any suggestions for the best way to approach this the "Wasp way"? I'd like to avoid writing custom apis for everything....

Hi guys, I have a question about Client / Server functions.

My app is currently running at the client level. The client api calls are all pointed to the public url. I want to change it so the client calls function on the server. I want the client to send a text string from an input box to a server function. then the client waits for a response. I can provide the current working code if you think it would help.

signup() not accepting custom fields in Typescript

I am having hard time to successfully write a custom signup page in Typescript. I followed the details on the Customizing the Signup Process and the Defining Extra Fields documents. I have defined my own custom component for the signup form, defined the userSignupFields object, all as described. However, unlike the example provided when I try to call the signup() function with any additional fields other than email and password, for instance firstName, I get the error: ``` [ Wasp ] ext-src/auth/SignupPage.tsx(83,9): error TS2353: Object literal may only specify known properties, and 'firstName' does not exist in type '{ email: string; password: string; }'....

Query with multiple entities

Hey everyone! šŸ‘‹ I'm trying to work with multiple entities in a Wasp query and running into some TypeScript issues. Here's my query definition: ```ts query getActiveGames {...

Issue migrating to Wasp TypeScript config

Hi! I'm encountering an issue migrating my Wasp v0.15.0 proejct to the new Wasp TypeScript config. I'm following the guide in the docs (https://wasp-lang.dev/docs/general/wasp-ts-config) but running into an issue at step 8: ...

Moving to cookie based sessions?

I'm not a fan of the JWT with localstorage managing the authorization system. Does anyone with some deeper understanding of the auth systems want to give me some jumping off points for implementing the cookie based session system? I see it uses Lucia. End goal would be a PR of a system of choosing between JWT+localstorage or standard cookie sessions.