Wasp-lang

W

Wasp-lang

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

Join

Hello,

I would like to try mage with gpt4. I created new folder and run wasp new. kubik@KBK:/mnt/c/Users/patku/projects/opensaas/Mageai$ wasp new...

Deploying a new Module as Separate App to fly.io

I'm using the Open SaaS template. In the client module, I'd like to establish a new module that can be deployed as a separate app to fly.io or other providers. How can I accomplish this?

504 Outdated Optimize Depth when adding any UI library

I've tested this with several libraries (primarily next ui and chakra) The error itself points to vite (it points to the .vite/<ui library> directory of node modules), but I've reinstalled all deps and npm cache multiple times and done hard resets on chrome. Testing on chrome using wasp 0.11.8...
No description

schema errors how to solve

I am getting the below error while running wasp db migrate-dev command , please help me solve it. I have also attached my main.wasp and schema.prism file....
No description

payment tiered access control middleware

Hi, I know wasp integrated with stripe, and defined 3 tiers, how can I add an access control? like hobby can upload 5 times, read 20 times, pro can upload 20 times, read unlimited, enterprise everything unlimited, like I was thiking of add a middleware to my specific api, but will the middleware has to be global? or do you have have any solution for this type of feature? Thank you. @miho @sodic...

Does Wasp support other LLMs such as Claude or open-source models from Hugging face?

Hi everyone, I recently came across this project and was very intrigued. Props to the team for their work on this! Before getting started with wasp, I wanted to check if it has the flexibility to support any LLMs. If not, I would be interested in integrating a chatbot I created using FlowiseAI and was wondering if that is possible as well.

checkStripePortalLInkExists in shared/constants.ts

I'm using OpenSaas with with wasp 0.13.2 and WSL2. The documentation (https://docs.opensaas.sh/guides/stripe-integration/) says to add this code to the src/shared/constants.ts file: ```javascript const customerPortalTestUrl = 'https//billing.stripe.com/p/login/test_...' const customerPortalProdUrl = undefined...

[Authentification] NetworkError when singin on a fresh install

Hello , I have an authentification NetworkError when I try to signin on a first use of the app. I wanted to explore the user/admin dashboard to see how it works but I don't have a clue why is generating this error. Also I don't know if there's a username:password for a dummy account I can use. Note: I'm suspecting the connexion with that database is generating this problem but I read in the .env file it's not mandatory to add the postgres url if running wasp start db...

Can someone help me in making chat application using wasp

Hey I was trying to make random chat app to learn more about mern, but now i am clueless. Can someone please help me

Having multiple generator in schema.prisma

Hello, Currently if I add my entities in main.wasp then the generated schema.prisma has generator in it which has js as provider. I am working on a project which has both wasp and python in it. And I would like to access db from both wasp code and python code. My plan is to define all the entities/tables needed by both python and wasp in the main.wasp file. Wasp will take care of generating client for node....

Direct to a defined page after successful login

Hello I have the standard LoginPage, as given in the ToDo App tutorial (see picture). I now would like to implement that the user get's to the /board Page, when successfully logged in. Can anybody tell me how I can do that or where I could find a good solution? ...
No description

Remove email login

Is it possible to only rely on OAuth and disable email login when using OpenSaas? When I comment out the email method (with verification and reset), I get a build error. Wasp 0.13.2 WSL2...

How to use Env variables in main.wasp?

I want to set the email authentication fromField.name to process.env.FROM_NAME and fromField.email to process.env.FROM_EMAIL...

can not find "wasp/server/_types" module or declaration

any suggestion? this error won't effect dev, but I can't have the right type with action's params args, context.
No description

Disable email login

If I only want Google signup, is there a way to remove the email login? I tried commenting ``` email: { fromField: { name: "Meeting Reminders",...

Do I have a way to use useLazyQuery ?

My app filters some data. I need to be able to refetch whenever the user clicks on "search" with the new filters. I also don't need to fetch when the form is not dirty. I tried this :...

Where to see migration files?

I have messed up one migration (because I had to delete my local code), and now I don't know where to access the migration files. They are generated at build time, and stored on .wasp, but where are they coming from? I need to regenerate the previous files (I can access the previous migrations by the current server code).

File upload size limit

I'm trying to implement max file upload size to the s3 bucket. I've handled the front-end but I worry that more advanced users could bypass this and spam my s3 bucket. Here is what I've been trying on the backend (just added the conditions) but it still uploads files greater than MAX_UPLOAD_SIZE (1 * 1024 * 1024): ```...

Auth

is there a sample bypass to login the auth while in development

Quick Start not working?

I'm following this tutorial: https://wasp-lang.dev/docs/quick-start After opening my terminal and running curl -sSL https://get.wasp-lang.dev/installer.sh | sh I get the warning in the image. Any solution? Thanks...
No description