Wasp

W

Wasp

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

Join

Supporting decimals in prisma schema

My schema has fields like so: ```model PaymentRule { id String @id @default(uuid()) venueId String ...

Port 5432 is already in use

Is it yet possible to assign a different postgres port for Wasp? Mine's currently in use by a different project, and I don't want to kill it so as to run Wasp. What's the best way to accomplish this?...

How can I access the current server URL from a wasp operation?

In a http request I could do req.headers.origin, but how do I get that from an operation?

Issue Deploying Frontend - "Cannot find package 'wasp'" (Wasp 0.15)

Hi Wasp Support, I'm trying to deploy the frontend of my Wasp application on a production VM using Wasp 0.15.0 but I keep getting this error when running npm run build: up to date, audited 79 packages in 815ms...

how to fetch data from database

Hey, I'm new to wasp and react. I have been trying to fetch data from the database (just like the already built in admin dashboard but from a different model in the DB). I have already created a model in the database. but was unable to get it to fetch data. its not the coding part that I have the issue in, its on what files I should make changes to get the job done. Hope what I told make sense. It would be great if you can help me out with the walkthrough of getting this job done!

Can't run the installation script on M1 Pro

Hi, I'm trying to run the curl -sSL https://get.wasp-lang.dev/installer.sh | sh on my mac's terminal but it gives me the following error : Do you have an idea ? From the repo and script it shows a version of wasp that doesn't seems to be compatible with my setup ?!...
No description

Web Hosting?

any recommendations on good web hosting sites?

Payload Too Large?

[ Server!] PayloadTooLargeError: request entity too large [ Server!] at readStream (/mnt/d/TRANSL8 WASP/Transl8/app/.wasp/out/server/node_modules/raw-body/index.js:163:17) [ Server!] at getRawBody (/mnt/d/TRANSL8 WASP/Transl8/app/.wasp/out/server/node_modules/raw-body/index.js:116:12) [ Server!] at read (/mnt/d/TRANSL8 WASP/Transl8/app/.wasp/out/server/node_modules/body-parser/lib/read.js:79:3) [ Server!] at jsonParser (/mnt/d/TRANSL8 WASP/Transl8/app/.wasp/out/server/node_modules/body-parser/lib/types/json.js:138:5) ...

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.
Next