Wasp-lang

W

Wasp-lang

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

Join

Migration Issues 0.14

I migrated to 0.14 and currently getting the issue - [ Wasp ] ext-src/client/admin/components/Header.tsx(1,15): error TS2305: Module '"wasp/auth/types"' has no exported member 'AuthUser'.

After deploying, my wasp app says "This site can’t be reached" - it was previously working

I had my wasp app working as expected after deploying to my domain last week, but now when I try and visit it (https://www.microinfluencer.club/), I get this error - www.microinfluencer.club’s server IP address could not be found. It was working last week, and I noticed the app says it is suspended on fly (but the client app is accessible on fly). The domain itself was previously configured to vercel, but as far as I know I removed everything related to that in my DNS settings....

I don't have cookie consent files

for some reason i dont have the cookie-consent folder under /components?

Dependency hell

Trying to install a package, and it wants to update react-router-dom. I've been in somewhere around the 5th ring of hell for the last hour, the path to Nirvana is entirely unclear as Wasp takes a massive 💩 when the version of react-router-dom != 5.3.3. What to do, @kapa.ai?

Can I create a user with only an email?

TLDR: I want to create an user only knowing the email in advance in order to allow users to pay without having to log in, just provide their email. I'm building an app that requires an extensive survey, in order to reduce friction the last step on my survey is asking the user for an email. After that I would like to show a paywall and allow the user to pay / subscribe without ever having to officially create an account. After payment I will redirect to account creation etc. is that possible?...

If I want to create a second project, what considerations do I need to make?

If I want to create a second project, what considerations do I need to make? I want to create a second local project, but I am worried if I run wasp db start for the first time it might mess with my db for my original project that i started with the saas template

Using the SAAS template, I want to manage the blog and docs in a "CMS" like an admin screen, how?

Unless I'm missing something, the only way to create blogs right now is saving md files in the directories, and then also needing to change the schema/ structure in the config file each time. Is there a CMS tool that does this anyone has used or has any tldr on? I tried using netlify identity because that's where my blog/docs are deployed, but I'm stuck getting the login to work. Anyone done this yet?

SendGrid 403 Error

I have updated this part in main.wasp ``` emailSender: { // NOTE: "Dummy" provider is just for local development purposes. // Make sure to check the server logs for the email confirmation url (it will not be sent to an address)!...

callback for google auth trying to send to old domain.

I switched domain urls that I'm hosting on. I changed everything in my wasp.main file and appropriately throughout the page. I even updated the callback urls and authorized domains in the google cloud api console. When I try to log in a new user, it tries to callback the old URL. Where do I fix this @kapa.ai ?

Unable to start db in saas template because of permission error in WSL

Whenever I do wasp new I can successfully create a new app and start the db successfully (when it defaults to sql) but when I do the saas template and it defaults to postgres, I have tried many ways to fix this and I still get this error:
wasp-bin: /home/alex/wasptest/app/main.wasp: openFile: permission denied (Permission denied)
I was at first getting this error below. I then enabled sockets per the docs instructions, and the error message changed to the above, regarding the openFile command. ...

One click deploy on baremetal?

Railway deploy is super simple, but VPS lack sufficient computrons for video tasks. Couple weeks ago, I tried deploying to baremetal/Ubuntu and was brickwalled on some $^%^% thing (details of which have long since popped off my stack). Is there any guidance to create a "one click" deploy script?

Accessing OpenSaas site from other devices when running locally

When running locally using wasp start, the output gives three IP addresses. Localhost works fine on host machine. The site is accessible to other devices on the IP that starts with 192.x.x.x, however the login and loading user data doesn't work. Is this a current issue or do I have to configure something to make it work?...

Updating to Prisma v5

Half question, half suggestion. Prisma v5 has performance improvements, but more important transactions & createManyAndReturn are available. I feel transactions are very important because they allow easy way to rollback. If I am updating multiple tables for a single operation and if anything fails in this process, now I have to find all previous updates and make sure they are rolled back. I am not aware if there is an API way of doing this without transactions in prisma. Let me know your thoughts. Thanks. PS: I did try to update to v5, however, v4.16 comes from another dependency or from the internal engine I think, so I couldn't change it by just updating package.json....

Error Report from Stripe.ts and Relevant Questions

Posting enough to show error for privacy reasons: ```Error [ERR_HTTP_HEADERS_SENT]: Cannot set headers after they are sent to the client. at stripeWebhook (/path/app/src/server/webhooks/stripe.ts:253:26)...

stripe best practices

I built out an MVP using wasp AI. Is there an easy way to port it over to Opensaas so i can have stripe? or should i just add stripe to my current app? I'm curious to hear what most peoples' workflows are...

Deploying wasp(0.14.1 ) ubuntu(22.04) vultr server

we are creating an ai photo web app where a backend ai will scan a photo identify certain features then return the photo to the user with specific changes. Does wasp have all the front end features necessary to accomplish this and work smoothly with our back end ai? and how do you recommend i proceed?...

Enable SSH on Backend-Server

I recently migrated to Azure and would like to enable SSH to connect to the docker container for troubleshooting in case something goes wrong. I found this Guide on how to set this up: https://learn.microsoft.com/en-gb/azure/app-service/configure-custom-container?tabs=debian&pivots=container-linux#enable-ssh It needs me to add an sshd_config file on root level (i guess i would do this by cpy during build) and also modify the Dockerfile which is created during Build. I guess there is no way for me to modify this file without writing a script which manually inserts parts on specific lines. Any advice on this?...

Deploying Wasp/fastapi on Digital Ocean

My project is mostly wasp (react/node), but it involves some api calls to fastapi where I have some NLP functionality built in python. I'm almost done locally, but I want to deploy on Digital Ocean because of it's flexible pricing tiers.
I've already dockerized fastapi, and I'm wondering what else I'd need to do to make deployment easier. Do I need to now dockerize both wasp and fastapi together? Is wasp already dockerized?...

my cursor ide broke something, i have no idea how to fix it.

i'm getting this error
Error [ERR_MODULE_NOT_FOUND]: Cannot find package '@wasp/core' imported from /Users/d/Projects/videoupdate/videoupdate/app/.wasp/out/server/bundle/server.js
Error [ERR_MODULE_NOT_FOUND]: Cannot find package '@wasp/core' imported from /Users/d/Projects/videoupdate/videoupdate/app/.wasp/out/server/bundle/server.js
tried wasp clean/build/start steps but it's not helping.....