Wasp-lang

W

Wasp-lang

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

Join

Cannot import external module @covalenthq/client-sdk

Could you please help me figure out this error: ``` [ Server!] import { GoldRushClient } from '@covalenthq/client-sdk'; [ Server!] ^^^^^^^^^^^^^^ [ Server!] SyntaxError: The requested module '@covalenthq/client-sdk' does not provide an export named 'GoldRushClient'...

user create "Save failed: there was a database error" after reset

I reset my dev database using "wasp db reset" but now I am unable to create new accounts! I get a server-side error: "Argument id for data.id is missing" from "prisma.user.create"...

Customer Portal not displaying?

I'm following: https://docs.opensaas.sh/guides/payments-integration/#set-up-the-customer-portal I added: STRIPE_CUSTOMER_PORTAL_URL=<your-test-customer-portal-link>...
No description

how to debug wasp api endpoint using breakpoints

I would like to debug using debugger and breakpoints. Is there way to achieve this when using opensaas that is setup using wasp?

Custom session token

Hey, I somehow need to issue a new token instead of using google/disc/email auth, is there a way to do that somehow? I couldnt find anything in the docs for some reason ``` export const getTokenByClerkId = async (req: any, res: any, context: any) => { try {...

scheduling feature

In my wasp project I want to add a feature where user can schedule when they want emails to come (eg: daily or weekly once every Monday or monthly) so each user can schedule when they want. How can I implement this feature??

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