Wasp-lang

W

Wasp-lang

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

Join

input coming back as undefined

Hi, I'm trying to implement a new action in, but my input args keep coming back as undefined. Here's is the flow I've followed from the docs curl eample: ...

Good way of adding a search to a prisma table

What is the best practise of making a query that searches a string on a database table. For example i have a field name and when a user searches that on the frontend i want a query to search this name in a table under field name. What are best practises...

How to use authUser conditionally in a react page?

I need to show a page, not all of it , if user is logged in, then I would need to show all of the content. Not sure how I can achieve this, because when I define a route in wasp file, I can access the user object unless I make authRequired as true.

ERR_CONNECTION_REFUSED and cors

I've been getting this error can't find where I should fix it and it's a normal template just testing it out
No description

Error calculating daily stats Production

Error calculating daily stats: Error: 2 UNKNOWN: Getting metadata from plugin failed with error: error:1E08010C:DECODER routines::unsupported

Object literal may only specify known properties

Hi, having an issue where calling an operation to create user comments doesn't work due to issues with typescript. I currently have this as the function definition export const createComment: CreateComment = async ({ fileId, content }, context: any) => { // code to create user comments here given a fileId and the content })...

Is it possible to use API routers in main.wasp?

Example of a router: ``` import { Router } from "express"; import { UserController } from "../controllers/user.controller";...

Port error when deploying with Fly

When I try to deploy using fly.io. I use the exact commands and ahve not changed anything about my code. I get this error: WARNING The app is not listening on the expected address and will not be reachable by fly-proxy. You can fix this by configuring your app to listen on the following addresses: - 0.0.0.0:3000...

Does WASP hope to handle compression of images to improve FE experience

I wanted to know if WASP has functionality to compress images to more efficient format (webp) on the FE (like nextjs image tag) or other BE solutions to improve user experience should be considered especially for applications with lots of images

Is there a way to inject env variables into wasp testing?

I have code that throws an error if a value from .env.server is not present. This code runs on the server. I can do something like MY_SECRET=abc123 wasp client test run, but I'm wondering if there's a way to do it within the wasp api....

What would be the easiest way to implement a change email verification link?

Hello, I would like to implement a feature to change email in account settings. What would be the easiest way to do it? Thank you!...

I need help in debugging resource exhausted (Too many open files)

I can't start my WASP project unless I do a ulimit -n 10000 . To wasp db start. I need to do this in every terminal session I need to run wasp in. I know if it's working and it's stupid it's not stupid, but still I don't feel comfortable doing it, I feel I'm hacking into the solution instead of tackling the problem and solving it the right way. Any idea why I keep getting this error? ...

How differentiate different status codes on client from HTTPerror thrown

I have operations that find a document by id and throws error 404 if not found. On client side , I want to check for status code is 404 and then udpate UI saying no documents present. In the console, the type of the error thrown comes as WASPHttperror, but I could n'tfind this type to reference in client code.

Password Reset for usernameAndPassword

How do we create a password reset page when using the usernameAndPassword option? It should allow a user to change their password

How can I get user current plan in opensaas template

How can I get user current plan in opensaas template ?

Remove Credits

Hi, I deployed the opensaas template on fly and created 3 plans (all of them subscriptions). However, by logging in, the user got 3 credits, how can I change that? He should have no subscriptions by default and once he buys one, it should be displayed there....

Failed to resolve import

[plugin:vite:import-analysis] Failed to resolve import "../../../../src/admin/dashboards/analytics/AnalyticsDashboardPage" from "src/router.tsx". Does the file exist? /home/rootall/apps/minisaas-boilerplate/app/.wasp/out/web-app/src/router.tsx:9:35 5 | import { LoginPage } from "../../../../src/auth/LoginPage"; 6 | import { TooGradedPage } from "../../../../src/toograded/TooGradedPage"; 7 | import AnalyticsDashboardPage from "../../../../src/admin/dashboards/analytics/AnalyticsDashboardPage";...

Update OpenAI to latest version Safe?

Is it safe to update OpenAI from 4.52.1 to 4.70.2. I'm using Wasp 0.14.0. When I try to update I also need to update zod

Migration from v0.14.0 to v0.15 leads Prisma errors

Describe the bug .wasp/out/sdk/wasp/node_modules/.prisma/client/default.d.ts Is not updated to include the defined prisma schema tables. So starting the wasp server leads to getting error: Module '"@prisma/client"' has no exported member To Reproduce Steps to reproduce the behavior:...