Wasp-lang

W

Wasp-lang

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

Join

production deployment port

I'm deploying my wasp app to an Amazon EC2 instance. I've set up nginx as a reverse proxy for port 80 to port 3000. However, when I attempt to login I get an error message stating: "Access to XMLHttpRequest at 'http://localhost:3001/auth/username/signup' from origin 'http://3.12.210.195' has been blocked by CORS policy: The request client is not a secure context and the resource is in more-private address space local." Where is the "localhost" part of this auth path set, and do I need to o...

HTTP port

Hi there. Any pointers on how to change the HTTP and HTTPS ports the server is listening on? 3000 and 3001 don't work for me.

getDirectoryContents:openDirStream: resource exhausted (Too many open files)

I keep getting this error whenever I do a change to my files. My public folder is still the default one, I haven't done any major changes. What could be causing this error?...

Caching audio files on client

How can I cache an audio file that's in the public asset folder so I don't have to keep making a request to the back end?

ssl cert

@kapa.ai How do I add a ssl certificate to my wasp app

self-signed cert

how do I add a self signed cert to my Wasp app?

add react component

How can I add a new react Component to my page. I've tried adding a new .tsx file (I called it WordCloud.tsx" in the @src folder, and importing it to my page using "import { WordCloud } from '@src/WordCloud';" However, the import is not working. Do I need to add another reference somewhere to get wasp to recognize the new .tsx?

How do I only let people with certain subscription acces a page

How do I only let people with certain subscription acces a page. I have 3 subscriptions how would i limit acces to certain pages or parts per subscription plan. For example i have the /dashboard route which has different kinds of pages on its route. I only want people with a paying subscription plan to be able to access them and if they are not paying redirect them to the pricing page/...

Anyone ever seen an error like this before with pgboss?

wasp-server-1 | Error: getaddrinfo EAI_AGAIN db wasp-server-1 | at /app/node_modules/pg-pool/index.js:45:11 wasp-server-1 | at process.processTicksAndRejections (node:internal/process/task_queues:95:5) wasp-server-1 | at async Db.executeSql (/app/node_modules/pg-boss/src/db.js:28:14) wasp-server-1 | at async Timekeeper.cacheClockSkew (/app/node_modules/pg-boss/src/timekeeper.js:114:24)...

Hi, in mode test the stripe billing portal is not working. Does anyone have this problem ?

The payement method works well and update the databse but to manage the plan then the billing portal is not working. saying this : (in french sorry ) Connectez-vous pour gérer votre compte...

WASP App Wont Load Without Restarting Computer

My WASP App will load properly the first run, but it will not run no matter what i do the second time. So lets say i turn on my Macbook (m2 chip), I go to my wasp app, i wasp start db and wasp start. Everything opens great, app works. ...

Waspello example

I am trying to run the waspello example but am getting a bunch of errors: [ Wasp ] auth/providers/types.ts(11,37): error TS2694: Namespace '"/Users/b2077/PycharmProjects/waspexample/waspello/.wasp/out/sdk/wasp/node_modules/.prisma/client/index".Prisma' has no exported member 'UserCreateInput'. [ Wasp ] auth/utils.ts(132,17): error TS2694: Namespace '"/Users/b2077/PycharmProjects/waspexample/waspello/.wasp/out/sdk/wasp/node_modules/.prisma/client/index".Prisma' has no exported member 'AuthWhereInput'....

Any examples?

Hi there! Just started using Wasp.. I was wondering are there any examples of working SAAS built with Wasp that you can share? Thanks!

Extremely slow loading on mobile

I am getting extremely low Performance scores on mobile for every page, see the Lighthouse report here. It happens across all pages, this one in particular is mostly text. OpenSaaS.sh also has a super low Performance score on mobile...

Cannot import external module @covalenthq/client-sdk

Could you please help me figure out this error: ``` [ Server!] import { GoldRushClient } from '@covalenthq/client-sdk'; [ Server!] ^^^^^^^^^^^^^^ [ Server!] SyntaxError: The requested module '@covalenthq/client-sdk' does not provide an export named 'GoldRushClient'...

user create "Save failed: there was a database error" after reset

I reset my dev database using "wasp db reset" but now I am unable to create new accounts! I get a server-side error: "Argument id for data.id is missing" from "prisma.user.create"...

Customer Portal not displaying?

I'm following: https://docs.opensaas.sh/guides/payments-integration/#set-up-the-customer-portal I added: STRIPE_CUSTOMER_PORTAL_URL=<your-test-customer-portal-link>...
No description

how to debug wasp api endpoint using breakpoints

I would like to debug using debugger and breakpoints. Is there way to achieve this when using opensaas that is setup using wasp?

Custom session token

Hey, I somehow need to issue a new token instead of using google/disc/email auth, is there a way to do that somehow? I couldnt find anything in the docs for some reason ``` export const getTokenByClerkId = async (req: any, res: any, context: any) => { try {...

scheduling feature

In my wasp project I want to add a feature where user can schedule when they want emails to come (eg: daily or weekly once every Monday or monthly) so each user can schedule when they want. How can I implement this feature??