Wasp-lang

W

Wasp-lang

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

Join

Real time change in UI

Hey guys, so when I make any changes in the code. I have to do wasp start everytime. And it's taking lot of time for me. When I change anything in code I want it to be reflected real-time in the website. Is there anyway to do this???

How Do I Link Pages Correctly? Code Provided

Beginner Question. I'm needing help on getting my page to show/load. The first page (SignupPage.jsx) which is showing Joint Vibe, when i click on the Sign up button in the top right corner, it takes me to a black screen (SignupForm.jsx) My question is, how come a black blank screen is showing up instead of the code i have for SignupForm.jsx? I have provided files as well as the main.wasp and App.jsx files. If you're kindly able to explain in detail as you would to a child so that i stop getting...
No description

deployment with Digital Ocean

Hello everyone, after more than 5 months i’m near to the deployment of my wasp WebApp. I have chosen Digital Ocean as hosting and i would like to hear if someone have already deployed with this provider. What are the basic steps? I need to install directly PostgreSQL or is better to install Docker and after postgres? And after I need to run something else relevant with digital ocean? ...

Authenticated image download

Hi, I would like to implement a feature in OpenSaaS/WASP where users can publish some posts with images, but these posts should only be available to authenticated users (images shouldn't be public). I was thinking of using a WASP api, but then I cannot load images in React with a simple <img src="..."> tag....

server side imports of the form "./foo" used to work and now fail

Example: import { taskCache } from './config'; This was working for many versions. I've created a new branch, added a bunch of new code which appears to have caused a new issue with this import style....

General Q: on every branch switch, wasp/prisma wants to make a new migration, is this the right way?

If I have a feature branch B and I switch back to branch A, it seems that prisma wants to create a migration to get the database back to the state which is A. When I switch back to feature branch B, it seems that prisma wants to create a migration to get back to that state. [repeats] Is this the usual development paradigm? Creating new migrations each time we bounce to a different branch, or have I missed the proper workflow here?...

multiple features

Hi is it possible to create multiple pages for custom features with this boilerplate? Couldn’t acces internet so trying to figure out through this way. Thanks alot

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....