Wasp

W

Wasp

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

Join

API auth with a Chrome Extension (third party)

I'm building a Chrome extension which makes Auth calls to my app's API. What this extension does is to access the local storage to get the wasp:sessionId and with it make the API calls. The problem I have is that I need to have the app page open to access the wasp:sessionId....

verification emails not sent

when a user signs up, the verification email isn't sent. however, if they request a password reset, that email is sent. so email in general is working, but the verification email isn't. as you can see in the logs, there are no errors. any ideas?...
No description

error

Uncaught TypeError: Cannot set properties of undefined (setting 'displayName') at chunk-R5CONI5L.js?v=a1cd3980:10214:25...

Re-Deployment issues with Fly.

Trying to re-deploy a project and running into this problem, at the client deployment ❌ --- [Error] Building of wasp project failed: ----------------------------------- 1 errors found....

Question from a beginner

Hi everyone 👋 I just discovered Wasp and SaaS template. I really like it, it is super easy to build something new from scratch, and the learning curve is pretty low. I'm a BE engineer with experience primarily in Java and Go. However, thanks to your great documentation, it is not too difficult to figure out how to work with your tech stack. I plan to build my mini SaaS based on Wasp. However, I have a concern. Wasp is doing a lot of magic. It makes FE and BE work together without all the usual overhead. If, at some point, I decide to migrate away from Wasp, how difficult would it be? Does it mean that starting with Wasp today, I will have to stick to it forever? It is a new framework, so seeing what would happen with Wasp and project support in a few years is difficult. ...

Test fails due to unresolved "@tanstack/react-query" import

I'm trying to run a simple test using Vitest with Wasp (version 0.16.2), but I keep getting this error: [ Client!] FAIL src/tests/components/AppLayout.test.tsx [ src/tests/components/AppLayout.test.tsx ] [ Client!] Error: Failed to resolve import "@tanstack/react-query" from ".wasp/out/sdk/wasp/dist/client/test/vitest/helpers.jsx". Does the file exist? [ Client!] ❯ TransformPluginContext._formatError node_modules/vitest/node_modules/vite/dist/node/chunks/dep-Dyl6b77n.js:49258:41...

Has anyone tried replacing WASP authentication with Auth0?

Im using WASP version 0.15.0 on WSL with Ubuntu Would attempting this mess with the rest of the framework or compiler? I’m building a security app and outsourcing this service for their brute force protection and MFA options would be super helpful as we scale up....

need a way to have different emailsender in dev and prod...

right now, when developing locally, i have to set the emailsender to dummy. then, before deploying, i need to set it to smtp. then, when running locally, back to dummy. over and over. sometimes i can do multiple deployments in a day, so this is significant friction, and if i forget, the prod environment will be set to dummy. there needs to be a way to have a main.wasp and a main.wasp.prod or some such, with the settings in the latter file overriding those in the default (dev) file. or vice versa, the mechanism doesn't matter as long as it's possible. thoughts?...

How to add a discount code to OpenSaaS Stripe checkout page?

How do I add a discount code field to my payment processing on OpenSaaS when using Stripe?

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