Wasp-lang

W

Wasp-lang

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

Join

How to install shadcn ui

Hey everyone! I absolutely love Wasp, but I have troubles installing shadcn ui properly. I could not find any docs online that would describe me how to do it without being able to use "npx". I have added the dependency in wasp.main, but it does not work. Thanks for you help in explaining me how I can import components from external libraries. Thanks a lot in advance for your support!...

Getting Wasp Compilation Error since Yesterday

Hi Team, We've been working on a SaaS product using Wasp, and everything was fine until last Friday. Since yesterday, our GitHub CI builds started to fail during project compilation. Can anyone help us resolve this? Below is the error message. The failure is happening while running the "wasp test client run --silent" command:...

Question about CoverLetterGPT.xyz

I saw your blog post about creating CoverLetterGPT.xyz, and I was wondering how you keep your API costs as low as ~15$ a month with the GPT api? That's extremely low I feel like as it would usually cost a good bit if that many people are doing it or am I missing something? Just trying to get ideas for how to launch my first SaaS

Disable opening tab with vite open-saas

When I try to run open-saas it is automatically trying to open a browser. How do I disable it that option because I'm running it in a headless server.

Frontend React Template integration into OpenSaas template

As someone who has considered web development their kryptonite for the past decade, I can't thank you enough for creating wasp and the OpenSaas template. My background has been using Python and R for data science and HPC, but for some reason, committing to learning a web framework like React or Angular has always been elusive. Over the years, I have purchased several React web page and dashboard templates but have struggled to customize them quickly. Since I have limited experience with Javascript, Typescript, or React but I now have a wonderful OpenSaas wasp template as a foundation, I was wondering if anybody might be able to provide pointers or links on how I could go about modifying the styling of the OpenSaas template with an existing React web template I have purchased. I totally realize this request is a bit ambiguous, but at this point, it is hard for me to know where wasp templating code begins and React code ends. Any links or suggestions would be greatly appreciated....

Getting this error when running 'wasp start db' inside of the app folder of open-saas

❌ --- [Error] Analyzing wasp project failed: ------------------------------------- 2 errors found: - Entity 'User' (referenced by app.auth.userEntity) must have field 'username' of type 'String'. - Entity 'User' (referenced by app.auth.userEntity) must have field 'password' of type 'String'....

(Resolved) Prisma Error on Mac

I have been trying to install the wasp saas template on my M2 mac, and most of it runs smoothly. The only error that persists and crashes the server is something to do with @prisma/client as you can see in the attached picture. Any help would be really appreciated! I'm a beginner in web dev, trying to launch a side project to the web....
No description

adding python apps

Hello. Love this saas template. A couple of questions, I'm technical (non dev) but a low/no coder in terms of dev projects..have several pyhton/langchain POC apps I would love to move to this 1. Is the code your own Wasp framework e.g proprietary or is there something similar to study...

Help with Wasp Embedding template / seeding the db

Hey everyone! I am a junior dev so please forgive me if it is an obvious mistake I am doing. I am trying to set up the wasp embedding templates and have followed the steps in the readme carefully. It all works until step 8 which indicates to run the command 'wasp db seed'. I get the error message attached. I have a postgres running on railway, and wasp db migrate-dev worked out. I have created an index in pinecone, have entered the API key and pinecone env variables in the .env.server file. I have tried all different combinations, but it all runs down to the problem of that my prisma client seems not to be up-to-date....
No description

Nested routing?

Hi I'm interested in implementing nested routing for a dashboard that I'm working on. I'm assuming that wasp uses react router under the hood from the utility functions however I cant find any documentation in Wasp for going deeper than a single client level rootComponent layout. React Router has nested routing functionality built in but since the router config is abstracted away into the main.wasp I'm unsure how to go about implementing this. Thank you...

How does file upload work?

(Resolved)When i upload a file prisma tells me that the type of the file is json while type string is expected

How do i allow upload of pdf files?

I get this error:[Server!] Argument pdfFile: Got invalid value {} on prisma.createOneSubmission. Provided Json, expected String.

Stripe testing issues(401) (SOLVED)

I’ve been playing around with opensaas and its a great project! However, stripe has been giving me issues, specifically testing stripe. I read the documentation repeatedly, setting up the env vars. However, when I click ‘buy’, it calls auth/me, which returns a 401 for some reason. I console.log(user) right before this call, and I am definitely logged in. It also clears my auth token from cookies, which means I can’t proceed with stripe testing, since it logs me out. Anyone encountered this issue before? I’m trying to debug it but I’m not as familiar with wasp/ts in general....
No description

GPTs - bringing my OpenAI Hosted GPTs to wasp and hosting it for free.

I hope I'm not missing the point and misunderstanding what wasp it. Like many others I built several GPTs and I'm OK with how they turned out except for them requiring the visitor to sign up for a pro subscription to see them They are concept demos so I'l like to have them be no charge to view, or just maybe an email signup or google auth to register and sign in. ...

Full stack AI app with Wasp❔

Hi is anyone here willing to mentor me how to start my Ai SAAS full stack project with Wasp?🤧 I made it as a Node.js telegram bot at first to test out the OpenAI APIS working together now need to make it a full stack app & turn the Figma design to React & HTML idk where to start with wasp & how to set up folders etc 🤧:sadboi:

Problems with server on fly.io - unexpectedly without any updates or redeployments

Hello, I'v had some problems with my rooms booking wasp app, running on fly.io. It has been running perfectly for four months (bookd.xyz / foretagscenter-client.fly.dev), but yesterday I noticed that it had stopped working, and I am puzzled by the cause of it. Problem: - It stopped working out of thin air. No redeployments or anything. - The client does not get any response from the server. ...
No description

Tightly coupled to React?

Just came across Wasp-lang and OpenSaaS, both looking really interesting! Looking through the docs and example code, it seems rather tightly coupled to React, so I might already know the answer here. Would it be at best non-trivial to de-couple React and introduce for instance Svelte instead?...

experiences with testing the backend or e2e?

Hey all, Does someone here already have experience with testing the backend or e2e? According to the docs only frontend testing is currently supported. But I thought maybe someone has set up a custom testing infrastructure and would love to hear about it. How did you do it and can you recommend setting it up?...

Integrate Twilio SMS API?

Wondering if anyone has had any experience with this + Wasp. Got sendgrid working nicely so far.. Tips, tricks, suggestions are greatly appreciated!

stripe integration debugging best practices

are there best practices for debugging a stripe integration? It's clear that it requires a few handoffs / redirects. and once user pays, the db needs updating and the client. Should I just add a bunch of console.log lines?