Wasp-lang

W

Wasp-lang

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

Join

when im runnig wasp start db, db is not connecting, just this happens and that's it endlessly

wasp start db ✨ Starting a PostgreSQL dev database (based on your Wasp config) ✨ Additional info: ℹ Connection URL, in case you might want to connect with external tools:...

wasp db migrate-dev could not resolve [email protected]

I'm using MacOS and I'm tryng to install OpenSaaS by following the guide but when I try to run "wasp db migrate-dev"(both node 18 and 20) I get the following error: ❯ wasp db migrate-dev 🐝 --- Compiling wasp project... --------------------------------------------------...

Installing mantine hooks got this error!

Mantine is a opensource UI library: npm install @mantine/core @mantine/hooks npm warn ERESOLVE overriding peer dependency npm warn While resolving: [email protected]...

When i'm running this line - wasp db-migrate dev, Im getting this error

🐝 --- Compiling wasp project... -------------------------------------------------- wasp: /home/runner/.cabal/share/x86_64-linux-ghc-8.10.7/waspc-0.14.0/Generator/templates/react-app/README.md: openBinaryFile: does not exist (No such file or directory)...

Uncaught Error when using prisma inside `app/src/server/utils.ts`

While working on creating jobs, I created a utility for logging inside the server/utils.ts I wasn't checking the front-end from time to time as I was testing the job using postman. However upon visiting the front-end @ localhost it doesn't work, it says uncaught error. ...
No description

Best way to use jobs/workers

I've created jobs/workers for most of the functions that are using external APIs (such as my SERP API or OpenAI) to ensure the task are properly executed. Unfortunately, now, it happens sometimes that I run into problems with PGBoss and the Postgres DB saying that there are too many connections. At the moment, I create a PBBoss instance for each job/worker....

Has anyone succeeded in using leaflet package with opensaas? (Could be a Vite issue?)

[wasp ^0.14.0, macbook M2 Sonoma 14.5] I've implemented a map in jsx using "leaflet, react-leaflet, react-leaflet-draw". The page loads fine except the map. I've been able to build the same page using jsx in a different repo without wasp. (it only uses react to build this). When run (wasp start), I get [ Client!] The request url "/../app/node_modules/leaflet-draw/dist/images/spritesheet.svg" is outside of Vite serving allow list....

Opensaas with new wasp version failed to install dependencies

Hello guys. I am starting a new project and of course using our beloved opensaas template and wasp, but it fails to install the dependencies for what I could see from the logged errors. I tried to used the npm I --force to see if I could overcome it but when I tried to migrate the db in order to start the app it fails again because it tries to install the dependencies. I am assuming it's something with the dependency version or related because of the error I got.
No description

Correct way of using environment variables when deploying via CLI

I've been looking at the documentation and am slightly confused around the way to deploy. I don't know if I'm overthinking it, but according to the docs the server secrets are set like this:
wasp deploy fly cmd secrets set GOOGLE_CLIENT_ID=<...> GOOGLE_CLIENT_SECRET=<...> --context=server
wasp deploy fly cmd secrets set GOOGLE_CLIENT_ID=<...> GOOGLE_CLIENT_SECRET=<...> --context=server
Does that mean you basically go through the .env.server file and add all the variables in one long command?...

Migrating Wasp / OpenSaaS app from 0.11.8 to the latest version

Wasp ppls, I have a Wasp / Open SaaS app that is currently at v0.11.8, and I want to migrate it to the latest one. What is the migration path I should follow? Shall I go through every release note and incrementally update from one version to another, or is there an easier way? Thanks for helping a fellow Wasp user 😄...

Query an entity throws "unexpected token: entities" Error

Hi everyone. I try to query an entity as follow: Wasp File: query findQRCodeById {...

What is the best place to initialize tracking on the backend

What is the best place to initialize tracking on the backend

S3 files can't update

Hi everyone ! Im using the File Upload demo with opensaas but when I delete files directly in the s3, it do not update in the app. Do you know anyway I could fix that ?
No description

Auth hooks not triggering

Hi everyone! BE engineer dipping my toes in web dev thanks to Wasp. Struggling to implement an OnAfterSignup hook based on the 0.14.0 release instructions, but my hook isn't triggered on signup. Here's my code: ```...

How do I access the user's email when they signed up with google

How do I access the user's email when they signed up with google, the email column is null when they signed up with google

Unable to tunnel to production db

I set my databse_URL to my production db following the instructions here: https://github.com/wasp-lang/wasp/issues/1464 and when running wasb db studio I get this error, "The database needs to be running in order to execute this command. You can easily start a managed dev database with wasp start db."

Dynamic Route

In Nextjs you can have a route such as api/someName/[action].ts and action is dynamic. Is this possible with Wasp?...

redirect incoming request to a path with a new header

Is there a way to redirect a request coming to a path like /blog*? I am trying to add an Astro blog to our app which will be on a different machine. So all requests to /blog need to be routed to the Astro machine. I am using Fly so there is an easy way to do this using the Fly-Replay header. Here's the implementation in Express app.all('/blog*', function replayToBlog(req, res) {...

Entire app being invisible if ad blocker is enabled

At first I thought something was broken, but then I turned off my ad blocker and realised that the entire website is invisible otherwise. Could someone guide me to where I could fix this?...
No description

blank page

i didnt make any changes i started the app fresh from the terminal and got a blank screen nothing it showing up in the locahost and i followed the instrcutions this is for the saas template by the way