Wasp-lang

W

Wasp-lang

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

Join

How to edit google oauth credits

I want to be able to edit the number of credits an account has, both locally and in prod, for google accounts, how can I do that. I know for normal email accounts I can use wasp db studio and edit

Issue with Stripe webhook testing using CLI

Hi, I am trying to test payment intent in local using Stripe CLI. I have followed both pages from the doc (Stripe Integration and Stripe Testing). But, when I am testing using the following command: stripe trigger payment_intent.succeeded --api-version 2022-11-15...

tsconfig paths alias

Hello, I added paths in tsconfig.json on the app like this ``` "baseUrl": ".", "paths": {...

Where are files stored after being uploaded to the file-upload page?

Sorry if this is a bad question, im just starting out as a web developer

How do you handle pagination with Wasp's useQuery?

I'd like to paginate my query but not sure on syntax or if it is supported. I see there's an old issue from 2021 here https://github.com/wasp-lang/wasp/issues/264 curious if others have found a way around it version: 0.14.0...

*/migrations should not be in .gitignore right?

Just noticed */migrations is in my gitignore and im pretty sure WASP auto put it there. That shouldnt be there right?...

Proper VSCode Intelisense

I'm having some problems when hovering new queries/actions created by me on the main.wasp. I'm using the openSaaS template and the existing actions works the vscode intelisense as expected. (Example Print of it working when hovering the getPaginatedUsers with ctrl hold) When doing the same with an action or query created by me, it doesn't works....
No description

React Query Defaults

What are the default settings in Wasp for React Query? For example, what is the cache item lifetime. Do I need to create cache keys or is it handled internally? Or is everything just React Query defaults and will reading React Query docs is sufficient? Thanks.

How: Dynamic Email Sender configuration

Is there a way to set the Email Sender config in main.wasp dynamically depending on environment? Would be great if we can import values from .env in main.wasp

When I made a custom api, I added user as an entity, but in the context it is empty

This is my main.wasp api socialPostMakerText { httpRoute: (POST, "/api/social-post-maker-text"), fn: import { getText } from "@src/server/socialMediaMakerPostText.js", entities: [User]...

Database migrations for production setup

What is the recommended way to update schema changes in a production setup? I'm assuming its migrations but I'm not sure if there is equivalent of "wasp db migration-dev" for production. Can you just run "wasp db migration-dev" for production? If so, in a docker setup, would you just ssh into the server instance and run it from there after you have deployed your new code?

useQuery error handling

I'm wondering why useQuery from wasp/client/operations doesn't handle errors as I expect. Consider the following: ``` // main.wasp query getApplicationById {...

Network error on Sign up after deploy on Fly.io

I have deployed to fly.io and it was working, it's deployed with a specific domain and the certificates are configured. Now a Network Error is ocurring. The browser says it CORS policy error (although I read in other posts here it could be for another reason). There is no error on server logs. I'd rather understand the issue instead of just redeploying....
No description

Json support

I'm trying to add lottie animation in my project and even if I provided the option to resolve json file, compilation process keeps failing saying that I need to enable the option. Here my tsconfig: ``` {...
No description

Translation

I'm building an app with your amazing tool but I was wondering if is there a way to change the default locale (english). I don't find any documentation about it and I saw that it was an opened issue. Do you plan to add it, do you need any help to make it available in french for example ?...

React Router missign hooks

I am trying to use my url has a state manager for some custom search in my app but for some reason some hooks are "missing" from the react-router-dom.... or I am probably doing something wrong. I want to get the search Params from it so I can sync the page content with it.......

[ Server!] NotFoundError: No DailyStats found

gettings this error, but i dont know if it is the same as https://discord.com/channels/686873244791210014/1253731262930223125 ? Did everything on this list : Got it now, there were three things: I had to use const PRIVATE_KEY = JSON.parse(Buffer.from(process.env.GOOGLE_ANALYTICS_PRIVATE_KEY!, "base64").toString().replace(/\n/g,"")) as per this comment I was encoding with single quotation marks, it should be echo -n ""-----BEGIN PRIVATE KEY---(...)"" | base64 ...

Scalability Questions

Hi, I'm building an app which handles some reasonably intensive requests on the server (pupetteer headless + LLMs + image editing etc). I'm not sure how wasp (wasp open saas specifically) will handle multiple concurrent requests. Would it be better to host these processes in a separate docker container, scale horizontally and make requests to the containers? From the documentation, I'm struggling to understand exactly how the applications are deployed. I know how to do it with the CLI tools, but...

Migration to 0.14 Issue with Prisma

My Auth is not recognizing the User field from my prisma file. Here is the main wasp declaration: app Realti { wasp: { version: "^0.14.0" }, title: "Realti",...

Error launching a new wasp project

HI! I'm starting to explore Wasp, but I've already come across a problem: simply trying to create a new project and run it with wasp start, I get these errors: anyone have any ideas? ``` 🐝 --- Starting compilation and setup phase. Hold tight... ------------------------ ...