Wasp

W

Wasp

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

Join

Can I integrate wasp into existing React App?

Hi, so I’m building an Ai Tool. I’ve created most of the frontend and was just about starting on NodeJS when I came across wasp. Can I integrate wasp into my existing frontend?

cannot use local host

Hi, wasp db startdoes not work on my laptop #🙋questions . How can I solve this issue? @WaspBot

Cannot find package 'vitest' imported from

Fresh installment of wasp 0.15.2 with opensaas gives me this - i already tried doing wasp clean
No description

Prisma: has no exported member

I am trying to install the opensaas template with wasp 0.15.2 but getting this: ``` [ Wasp ] auth/providers/types.ts(11,37): error TS2694: Namespace '"/mnt/projects/challenge/nodeflowai/nodeflowai/app/.wasp/out/sdk/wasp/node_modules/.prisma/client/default".Prisma' has no exported member 'UserCreateInput'. [ Wasp ] auth/utils.ts(132,17): error TS2694: Namespace '"/mnt/projects/challenge/nodeflowai/nodeflowai/app/.wasp/out/sdk/wasp/node_modules/.prisma/client/default".Prisma' has no exported member 'AuthWhereInput'. [ Wasp ] auth/utils.ts(193,27): error TS2339: Property 'PrismaClientKnownRequestError' does not exist on type 'typeof Prisma'....

Can I kick off an `action` from within a query?

If one of my queries finds that there are no results in the DB its search, I want to asynchronously kick off an "action" that I have to populate the DB. Am I allowed (in WASP) to send an action from within a query?

Having Trouble Getting my UI to behave

Hi everyone, I'm experiencing an issue with a 3D model in my project. It's supposed to stay within its bounding box (or allocated area), but when I resize the page, it moves outside of its designated space. I'm also seeing the same problem on mobile, where the 3D model overlaps the text below it. ...

Wasp uses tanstack v4, while another dependency I'm importing using V5, anyway to do both?

wasp version: 0.15.2 As the title states above, wasp uses v4 so my useQuery is in V4, I require another component that uses V5, when using the component I get a lot of missing states because of the verison miss match....

Railway server deploy errors

``` Dockerfile:83 ------------------- 81 | WORKDIR /app 82 | COPY . . 83 | >>> RUN wasp build...

console database

I want to show all the value of group but I donw know how, can you help me? I just know get data of user using useAuth()

systemctl start wasp.service

i'm trying to get the wasp website and db to auto start on the server. this is my wasp.service file. i'm not sure what's needed [Unit] Description=Wasp Web Site...

Updating CORS settings for myapp-server

Hi everybody, currently playing around with my webapp beta version on fly.io and I wanted to connect it to my custom domain. Did anyone ever try to update the CORS settings for the myapp-server part of a Wasp app? I have my webapp hosted on fly.io and have successfully added a certificate to route my custom-domain.com traffic to the myapp-client.fly.dev domain. This works like a charm, however this is not compaible with the myapp-server since it does not allow my custom-domain.com to access it. My browser terminal gives me a 401 error from myapp-server, so it is a CORS issue. How can I fix this? From my understanding, all i would have to do is add custom-domain.com to the allowed domains, right? I could already gather that localhost is set by default from issues on GitHub (https://github.com/wasp-lang/wasp/issues/94, https://github.com/wasp-lang/wasp/pull/206), but did not find a way to manually add my custom-domain before deploying. I also tried adding a certificate to myapp-server hoping that would fix it, but this alone is not sufficient....

Weird CORS Error

This is my cors middleware that works on my other endpoints* Also the code for the endpoint I'm trying to invoke, whtever I do im hitting CORS, everything else works properly......
No description

Streaming Text From OpenAI : Best Approach?

Hi there! As the title mentions, I am looking for ways to implement a text streaming chatbot in Wasp. However, the only example I could find on streaming text was done through API, and the user seems to have a bit of trouble tying it to a button on the frontend. Not sure if I can do it with Async Generator / Event Emitter / Websocket / Other Methods. I can probably work it out with enough time. Still, I want to ask for some advice from people who are more familiar with wasp, as text streaming feels like a common feature. Which would be the easiest option? Is there some native support or tools that I'm missing?...

Beginner question. Set as the home page?

I've created a secondary page. called imageGallery. how do i set this page as the home page? or what code is needed in the main.wasp to load content from the imageGallery

Is this an invalid action? Getting a 500 when calling, no error logs

I'm trying to do a simple update call but getting a 500 from prisma, with this message ``Error: Invalid prisma.creators.update()` invocation: {...

Wasp websockets with multi-region fly.io app

If I have my Wasp app deployed to fly.io in multiple regions and utilize websockets, do I need to worry about routing the websocket connection to the proper server? Are there technically 2 separate websocket connections running that aren't aware of eachother?

AfterEmailVerificationHook

Is there an afterEmailVerificationHook so I can send a welcome email?

how can i create a custom global middleware almost same with the user authenticated middleware

i need to pass new data in context similar how can i get the user in context in action and query

Caching data with wasp

Just set up file upload/download to S3 as done in openSaaS. I'm guessing that every time a S3 url is generated with a key, you would get billed on AWS - is there a good way to cache data that works well with prisma/wasp?

React Router Future Flag Warning: React Router will begin wrapping state error

This error is appearing: React Router Future Flag Error: React Router will begin wrapping state updates in React.startTransition in v7. You can use the v7_startTransition future flag to opt-in early. For more information, see https://reactrouter.com/v6/upgrading/future#v7_starttransition. Error Component Stack is about the: RouterProvider...