Wasp-lang

W

Wasp-lang

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

Join

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

todo list: server crashes

Tried replicating the todo list project and at first it ran and then it is crashing, is it some npm error because it is quite frequently happening. Please help me understand the error!:wasplang:...
No description

When i try to install opensaas and when i try to wasp db migrate-dev i get this

[ Wasp ] ext-src/admin/elements/charts/BarChart.tsx(95,9): error TS2353: Object literal may only specify known properties, and 'radius' does not exist in type '{ strokeColor?: string; strokeWidth?: number; fillColors?: string[]; shape?: ApexMarkerShape; offsetX?: number; offsetY?: number; customHTML?(): any; onClick?(): void; }'.❌ --- [Error] Your wasp project failed to compile: -------------------------------- SDK build failed with exit code: 2❌ --- [Error] Compilation of wasp project failed:...

What are the password requirements for users?

I have noticed that non safe passwords can't be used. What are the specific requirements for the passwords?

Module '"wasp/server/operations"' has no exported member 'scrapeArticles'.

Hey, I'm been having some trouble trying to resolve this bug related to a custom action that I'm trying to implement. I'm using the open Saas framework. Here's the line that giving me touble:...
Next