Wasp-lang

W

Wasp-lang

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

Join

Entire app being invisible if ad blocker is enabled

At first I thought something was broken, but then I turned off my ad blocker and realised that the entire website is invisible otherwise. Could someone guide me to where I could fix this?...
No description

blank page

i didnt make any changes i started the app fresh from the terminal and got a blank screen nothing it showing up in the locahost and i followed the instrcutions this is for the saas template by the way

Routing issues with signup/login

I'm using the provided boilerplate for signup/login, which use the <SignupForm> and <LoginForm> which appear to be provided by wasp. When user clicks the Login or Signup buttons, there is an error either /api/auth/username/login or /api/auth/username/signup are 404. It is not clear what is happening, do we need to supply code for these routes?...

HTTPS

Hey! I have enabled HTTPS using the following code: main.wasp file:...

How to access user's fields on FE from child table

I have User and BusinessDetails tables in my app and they have a one to one relationship: ``` entity User {=psl id Int @id @default(autoincrement()) ...

Google Analytics seems not working

I have deployed the client to Netlify with REACT_APP_GOOGLE_ANALYTICS_ID=xxx npm build, but it seems that it is not linked yet. How to check whether the Google Analytics is installed correctly in the website?...
No description

Enabling Auth Required Isnt Routing to /login

When I enable authRequired: true in my main.wasp, its not routing to what onAuthFailedRedirectTo is set to. Rather I get a network error and Mozillas console is stating CORS error. I didnt used to get this error so Im unsure on how to remediate it. Any Help appreciated. Wasp Version 0.14.0. I am using Supabase as an external DB if that could be creating an issue.
No description

Update Google Auth style

Hi I currently using google auth for my app and I want update the Google Auth styles and labels, wondering how should I approach this, as this component is created behind the scenes by wasp and less control on configuration #auth #google...

Fly.io 3 Free VMs

"Fly provides free allowances for up to 3 VMs (so deploying a Wasp app to a new account is free)" Is this still valid? On its website:...

Error: browserType.launch: Executable doesn't exist at

Hi there im trying to launch "Playwright Test " but im getting this error. Any clue on how to fix it ?
No description

How to contribute to the SaaS template?

I have 10 micro SaaS applications that I am building. Have a few changes to make to the base SaaS which I think everyone could benefit from. What is the best way for me to provide the SaaS changes?

Wasp Deploy Client only to Flyio

Possible to deploy and upload only the client?

Customize Entity for Client and Server Function

Hi, New to Wasp and tried to use OpenSaaS.sh. I want to add a simple function like Count Button Click. It increases by one and the data is stored in the db every time a button is clicked. ...

if I don't use "www." then my app doesn't show

Hey folks (@kapa.ai in particular lol), if I use "www." to go to my app. then my app doesn't show up and I get the squarespace under construction page, but if I leave www. out then my app runs just fine. Any ideas what I could do to fix this?...

React Query questions

How are the cache keys handled under hood? Let's say I visited a page where user has a list of favorite items. Then the user visits an item's page. On this page, I could access the cache and if the item is in the list save an API call. But I couldn't access the query cache key. So I checked React Dev Tools, went to QueryClientProvider on components and checked client. QueryCache element is there; so clicked on it and found that it only contains the most recent page's queries cached. If I am on favorites page it will be something like: 1. ["auth/me"] 2. ["favorites-endpoint-url"]...

Github Oauth additional query parameters

Hello 👋 , I am having trouble to include additional query parameter inside Oauth flow using wasp. The default authorize call made by wasp generated src looks like https://github.com/login/oauth/authorize?response_type=code&client_id=xxx&state=xxx&scope=user%3Aemail and I need to specify additional parameter:redirect_uri (details https://docs.github.com/en/apps/oauth-apps/building-oauth-apps/authorizing-oauth-apps#1-request-a-users-github-identity) However, the docs mentions only support for scopes using configFn -> https://wasp-lang.dev/docs/auth/social-auth/github#configfn-extimport Any ideas how to do that?...

Deployed /auth/me blocked by CORS policy

I've just deployed my app using wasp cli to fly.io but I get this error when opening my site from Google Chrome (works fine on Safari):
Access to XMLHttpRequest at 'https://foobar-server.fly.dev/auth/me' from origin 'https://www.foobar.com' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource.
Access to XMLHttpRequest at 'https://foobar-server.fly.dev/auth/me' from origin 'https://www.foobar.com' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource.
I set environment variables and the email sender works just fine. Did I miss something?...

how to Re-hydrate query data ?

I want to call the query again every time my currentPage changes, but the way it's coded in the print example, the pages re-renders in a weird way and my pagination component doesn't work as expected.

Do I need to do something for the hot reload to work?

I've been trying to use the open saas template, but the hot reload isn't working for me. What do I need to do to make it work properly?

How to edit google oauth credits

I want to be able to edit the number of credits an account has, both locally and in prod, for google accounts, how can I do that. I know for normal email accounts I can use wasp db studio and edit