Wasp

W

Wasp

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

Join

Server Dockerfile build failure

Using Wasp 0.16.2. Issue in .wasp/out/Dockerfile The Dockerfile used to deploy the server docker container has a command to install the 'upx' package (Line 77) but fails. ...

Environment variable I need to add to Railway to get GoogleOAuth to work

I am getting this error in Railway: πŸ” Validating environment variables... node:internal/errors:496 ...

Is it possible to dynamically import a static client asset from the server?

Let's say I have a ts/js file that exports some JSON that I would like a server query/action to have access to, but I want to pass the file name to the query/action. Currently I have query code like this: `` const getContractABI: GetContractABI = async ({address}, context) => { const {default: contract} = await import(contracts/${address}.js`);...

call api from action

Can you call an api from an action?

issue with entity id

I have a prisma entity defined as such: "model SurveyResult { id String @id result String reviews String @default("") ...

action chaining losing context

I have a action (Defined in my actions.js) that makes a call to an external async call via axios, and when the response is received needs to call another action to save the result to an entity. However, the second action seems to lose context (i.e. the user context is not passed along). What's the best pattern to do something like this?

Is there a recommended way to add computed fields to a model?

For example, let's say I have a Person entity with a dateOfBirth, and I want to derive age in the model so I can reuse that across the UI. I think Prisma client supports compute, but not sure how to use that in Wasp? Or maybe there is a better way?...

Is there a way to cc an email when using sendEmail?

From the docs, it looks like we can only define a to / from in the action. My use case is to cc my support@ email in the Contact Form submission acknowledgement email to the user such that we can start the support conversation in a thread from there....

React Requirement

We cant use react 19 with wasp right?

Unable to get cookies onAfterLogin

I am triying to acces req.cookies but it is always empty. export const onAfterLogin: OnAfterLoginHook = async ({ providerId,...

Mailgun not working periodically

I'm using Mailgun as the email provider, and some of my users reported that they cannot receive sign-up emails. - I checked my Mailgun dashboard and found out 30%+ of the emails are "Failed" - I tried with my own Gmail and Outlook email addresses. It sent to my Gmail, however not Outlook address. - The Outlook email even didn't go to the spam folder....
No description

Unable to run the installer on a macbook

This is what I get: ``` share git:(main) βœ— curl -sSL https://get.wasp.sh/installer.sh | sh Installing wasp version 0.16.2 (latest). ...

How to get the submenus in google

How do i get the submenus in google when i search for my saas. An example is hrefs where they below the link in the search tesults have subemenus. See the image.
No description

Getting this issue in WASP 0.16.2

Client ] > [email protected] start [ Client ] > vite [ Client ] [ Server ] > [email protected] watch [ Server ] > nodemon --exec 'npm run bundle-and-start || exit 1'...

wasp start error

wasp start fails with a bunch of errors like "npm warn cleanup Failed to remove some directories" and "Error: EPERM: operation not permitted, rmdir " on windows wsl ubuntu...

How to use HEROUI in WASP

I use heroui in wasp, why is there no style?

Is it possible to run Wasp in the browser with the Haskell compiled to Wasm?

I kept thinking last night about Wasp could technically run in the browser with WebContainers (or even without) if the Haskell was compiled to Wasm. Is that truly possible or just mental lore since I was sleepy?

TanStack Tables with WASP?

I'm building a SaaS platform which can be oversimplified to a collection of features built into a table. Thus far, I've done really well building my own table from scratch, but as I'm implementing more features I'm finding my Table foundation is less extensible and accurate as the required scope becomes more complex. Before continuing my development, I'm at a crossroads. Either I refactor my existing Table schema, or I redesign my features to work with a more robust framework like TanStack Tables, which seems like potentially a smarter direction to go in. Does anyone have experience using TanStack Tables w/ WASP? Any potential pitfalls to look out for?...

Problem with custom signup Invalid credentials on Login.

Hi @kapa.ai , ​​ I'm using the function "import { signup } from 'wasp/client/auth';" to register the user with email and password. The registration is successful but when I try to enter with the email and password used during login it tells me "Invalid Credentials" even though the user has been correctly registered. The only way to access is by resetting the password....

How to change /email-verification path properly in OpenSaas?

Hi @kapa.ai , I would like to change the path of the /email-verification route in OpenSaas, I could easily do it from the Main.wasp file but unfortunately I can't change the value that is passed to getVerificationEmailContent in /src/auth/email-and-pass/emails.ts Can you help me understand how I can change the value of the path of the /email-verification route appropriately?...