Wasp-lang

W

Wasp-lang

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

Join

Why am I getting this error ?

[ Server ] GET /auth/me 500 13.951 ms - 1330 [ Server!] PrismaClientKnownRequestError: [ Server!] Invalid prisma.session.findUnique() invocation: [ Server!] [ Server!]...

CORS issue on my custom API

I am getting this CORS error on an api call from my chrome extension to my custom wasp api.
Access to fetch at 'http://localhost:3001/api/authUserExtension' from origin 'chrome-extension://bopkjccjbddnmenbconjhiglhbbcniia' has been blocked by CORS policy: Response to preflight request doesn't pass access control check: No 'Access-Control-Allow-Origin' header is present on the requested resource. If an opaque response serves your needs, set the request's mode to 'no-cors' to fetch the resource with CORS disabled.
Access to fetch at 'http://localhost:3001/api/authUserExtension' from origin 'chrome-extension://bopkjccjbddnmenbconjhiglhbbcniia' has been blocked by CORS policy: Response to preflight request doesn't pass access control check: No 'Access-Control-Allow-Origin' header is present on the requested resource. If an opaque response serves your needs, set the request's mode to 'no-cors' to fetch the resource with CORS disabled.
...

How to override the title, meta properties and description?

Hello, My app is practically finished but I just noticed that there seems to be no way to change the titles of the pages, the meta tags or the description as they are set once for the whole app. I mean, I understand that it is supposed to be a simple SaaS app but relying on Astro for adding simple pages (legal notices, one-page doc) is way overkill and, in my opinion, kills a lot of the simplicity of Wasp....

Using dummy email locally and Mailgun on environment

How can use Dummy email sender locally and then Mailgun when deployed to an environment is there some config to setup in main.wasp

where to see console.log from api

I am doing a console.log() in my api i defined in my wasp but i cant see it anywhere, where do i see the log?

wasp start can be faster building?

When you make changes in your Wasp app and stop and do wasp start again, how long does it take? Or for example I work from windows with wsl, on a real linux would that compilation time be faster?

Report as a product.

So my SaaS will be an AI generated report. Initially before switching to OpenSaaS I was planning on using a low code/no code solution and a severless function on digital ocean to make my AI API call. Is that still the best option for me? Flow would be landing page -> login -> purchase -> Form to submit info for the report -> Display report Can/should I do that right from the website instead of the serverless function? Any tips on this part for some one who has no idea what they are doing?...

best library for a react js ui components dashboard? with tsx.

what is a library that you recommend to use to build a custom dashboard for my webapp, i've used shadcn but I keep getting errors and was thinking about other libraries but not sure if they support tsx and stuff and react.js

I added a new function in demo ai app, but its not working (SaaS)

Please help me debug The function is to getEmailTemplates from a folder, I added it in main.wasp and then in demo-ai-app operations.ts...

Standalone .wasp output generation

I'm encountering this problem a lot, where I kind of reach a racing condition. I declare a function in my operations.ts before declaring it in the main.wasp file first, causing my wasp start to break. I'll have to undo my operations.ts changes, declare the Query/Action in the main.wasp, do a wasp start so it generates the .wasp/out types, then implement my operations.ts changes. Not to mention when you forgot a small change in main.wasp having to do all that again. ...

Cron jobs running locally?

This is almost certainly a really stupid question, but I assume if the server is running locally, cron jobs will still fire and therefore update my database (when updating it in the job, of course)

cron job not working

When I set cron for every 5min , 30min, 24 hours like this it's working. But I when I set it at a particular time and a particular day (eg every Monday 2pm) it's not working.

Trouble deploying opensaas on fly.io, get a site not found after using authentication

I deployed my project on fly.io and did everything exactly according to the documentation. However, trying to click on google authentication I will get a site not found (https://mycoolap-server.fly.dev/auth/google/login) and when trying to sign up by mail I get network error (using the console also shows me, that the same link is trying to be opened) What am I missing here?...

Do I need to add client side env variable every time I deploy?

Do I need to add in my client side env variables every time I deploy like so? REACT_APP_GOOGLE_ANALYTICS_ID=example wasp deploy fly deploy, or just for the first time? If every time, is there a way around that?...

how to remove email verification for creating account??

I want user to be able to create account with username and password with no email verification. I commented out the email past in main.wasp and it has removed the login form in the ui (only Google auth is there in ui) . Is there any way to skip this email verification??

Is there a CRUD entity update example?

I don't see an example in the documentation. I'm wondering if we have to first do a find, then a delete and then a new create?!? How do we actually update the entity without removing the old one?

What's the best way to setup auth with third party that utilizes Google Auth?

I am creating an app that will use https://www.dynamic.xyz/features/embedded-wallets and I will use striclty the Google auth portion of this. What's the best way to wire up a third party that uses Google auth to the Google auth setup in main.wasp? I am using the OpenSaaS template, not sure if that helps.

s3 integration to existing project

Hi there. I created a project that initially didn't have a need for S3, so it was left out. However, now I need to add the ability to upload files and store them. The tutorials for S3 seem to all assume the libraries are there from the start. Is there a way to add file upload support to an existing project? #đŸ™‹questions #aws #fileupload...

Set up client environment variables and deployed, but not defined on prod?

I've integrated Posthog into my wasp application, but whilst it works locally with my environment variables, it does not work when deployed. As mentioned in the docs, I am using the correct syntax - eg. import.meta.env.REACT_APP_PUBLIC_POSTHOG_HOST, I have also made sure to deploy these new secrets to prod, and when requesting them via fly secrets list -a <app name>, they come back. ...

Login button can't be found

After deploying my wasp app based on the open-saas template, I cannot see the "login " button on the top right of the landing page. It seems like it cannot reach the server side of the app.
No description