Wasp-lang

W

Wasp-lang

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

Join

Custom Type Declarations

I am trying to extend my @mui/material configuration and thus als its type declarations. When adding a declaration file mui.d.ts or mui.ts my local development works just fine (IDE Support and wasp start starts the server without problems) but when I try to deploy my app, the Typedefinition seems to get lost as i get the Error Property <MyAddedProperty> does not exist on Type XY. Any Idea how I can make this work?...

Integration Issue with Mailgun in Wasp: 'Forbidden' Error Related to EU Domain

Hello, I'm using Wasp, and I want to send emails using the Mailgun provider, but I'm encountering an issue with a "forbidden" error. After some research, I found that the problem is related to the base URL. For domains created in the EU region, you need to add .eu to the URL, like this: https://api.eu.mailgun.net/. Here's the documentation: https://documentation.mailgun.com/docs/mailgun/user-manual/get-started. Is it possible to fix this issue? I can't find where in the Wasp project the URL is configured to apply this fix while waiting for an official solution. ...

Error: Cannot find module '@node-rs/argon2-wasm32-wasi' when deploying to fly.io

Hello team Wasp! Suddenly I'm getting an Error: Cannot find module '@node-rs/argon2-wasm32-wasi' error when deploying my app to Fly.io. The app was already deployed and functional before this deploy, and I have changed nothing to the backend, so I'm not sure where this error is coming from?...

TodoApp doesn't show changes until I switch tabs

Just completed the TodoApp up to step 6 (https://wasp-lang.dev/docs/tutorial/actions) and I've noticed that when I add new todos or mark them complete I don't see any changes until I switch Chrome tabs or windows. Refreshing the page also so the changes. Keeping the developer tools open in Chrome I don't see the new todo show up in the DOM until I switch tabs and back again either. Has anyone else seen this? Running node v20 and wasp 0.14.0. ...

Has anyone run into the following starting the runtime academy docker image?

(xfdesktop:366): WARNING : 16:03:33.587: Failed to get system bus: Could not connect: No such file or directory (node:284) [DEP0005] DeprecationWarning: Buffer() is deprecated due to security and usability issues. Please use the Buffer.alloc(), Buffer.allocUnsafe(), or Buffer.from() methods instead. (Use code --trace-deprecation ... to show where the warning was created) Extension 'wasp-lang.wasp' v0.5.3 was successfully installed. Starting PostgreSQL 15 database server: main....

Single Account Multiple Devices Access

Hey, Not sure if this is what I need, also I don't know how opensaas works. How do I go about where users of my solution register a single account, now this account can have 1 to Many subscriptions active, meaning the same account token can be installed on n amount of different devices (say 10 devices limit) after that number is reached a subscription won't be allowed. How would this work? ...

Genrative AI

Hi i am intersting in building AI app.My users will uplaod theior docs (Complex PDFs words,csv etc) and they can talk with them and get insights. Is it possible to integrate a fastAPI python backend in opensaas?Because my tech stack is in python (langchain,llamaindex,llamaparser and other AI frameworks)...

Getting a 404 on our test API route

Trying adding an api route like so: api inference { fn: import { inferenceHandler } from "@src/server/api/inference.js", middlewareConfigFn: import { inferenceMiddlewareFn } from "@src/server/api/inferenceMiddleware",...

Invalid credentials after DB changes

I pretty much messed up the database by adding something into the schema, which caused some issues. Anyway, I ended up with a wiped database, the schema is now correct and working. I can sign up with a user, verify it however when trying to log in I am getting invalid credentials (I have tried different emails, passwords etc and 100% sure the password is correct. I can see the user in the database, and when trying to log in can see this is the error coming up in the terminal [ Server ] POST /auth/email/login 401 72.864 ms - 43...

share functions between server and client

Hi, I'm seeking clarification on how functions are shared between the server and client. According to the documentation, 'Operations' (like actions) are used to modify data in the database, with the functions being executed on the server side. My question is: can 'actions' be utilized to create server-side functions that do not interact with the database, or is it necessary to write the logic separately and then import it into client files? If the latter is correct, how does Wasp differentiate between server-side and client-side code? Thank you for your support!...

Install specific version of wasp

Hello guys. I know there is a way to install a specific version of wasp but for some reason I am having a hard time finding it again or I am being lazy as well. Anyone can point the direction? The main point of this question is to make the bot answers it, but I don't...

Getting 'Not Found' error after clicking email verification link.

Deploying manually. I've provided WASP_SERVER_URL environment needed by Wasp Auth. ...

Google auth not working in production

I had set up google auth in dev and it worked without problems but it cause a lot of problems in production. I am using the opensaas template. The documentation doesn't really mention how to get it working for production. I have set up the oauth app and credentials in google and passed the client id and secret to fly through cli. ...

Infinite loop if updateCurrentUser returns void

Hi, I'm using opensaas with wasp v0.14.0. I tried to update the updateCurrentUser function from actions.ts to return "void" as the result is not being used in App.tsx. I also added some logs as you can see in the screenshot....
No description

WARNING The app is not listening on the expected address and will not be reachable by fly-proxy.You

I get that error during deployment. 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:8080...
No description

wasp db migrate-dev Error

``` wasp db migrate-dev 🐝 --- Compiling wasp project... -------------------------------------------------- ...

REACT_APP_STRIPE_CUSTOMER_PORTAL in Saas template

hello, how is REACT_APP_STRIPE_CUSTOMER_PORTAL defined in Saas template import.meta.env.REACT_APP_STRIPE_CUSTOMER_PORTAL...

Cant find user table in production db after deploying to fly.io

In dev I could easily delete users using the Prisma GUI, anyhow after deploy I can't seem to find the table containing the users. I am accessing postgers through the fly cli with flyctl postgres connect -a myapp-db postgres=# \dt...

Can't edit or delete users in admin panel

when loging in with an admin user and going to the default "users" pannel under menu there is an option to edit or delete each individual users. Anhow, these don't work for me yet. Is this expected or are they meant to work out of the box?

When we query any entity with child entities included, how to get types defined for those in client

Wasp version - latest 0.14 e.g. query getStandard { fn: import { getStandard } from "@src/standards/queries",...