Wasp-lang

W

Wasp-lang

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

Join

fly.io deployment error

I tried to deploy to fly.io, and I set DATABASE_URL, and I tested it can connect successfully with dbms, it still got error saying env not found, how to solve it? Thank you. @miho @martinsos...

front end developers demand in job market

Can anyone please tell me about the demand of a beginner level front end developer in job market now a days?

Passing Context for Dependency Injection

Is there a standard pattern for passing the context object for database interaction to functions? When using Prisma, I can always pass the Prisma client to another function and have full type suggestions. when using wasp, routes are given a "context" object with an array of accessible entities that are defined in the wasp definition. is there a way to pass around the context object with typing to other functions in the same way that is possible with standard Prisma?...

Getting Updates to the Open SaaS Template (not working?)

I am following the guide in Getting Started, however I get the attached error in the last step.
No description

Cant find app and blog in my folder but it says wasp already installed.

Hi everyone, ive installed Wasp but i cant find where the app and blog folder is at. It keeps says No file or directory and even when i opened the place where i created my folder, its empty. Theres no Wasp files or whatsover in it, where could it have been? But it says wasp already installed. Im so confused...

signup

When defining action in main file If i dont want to use entity as i dont want to store in the db. Can I use args. If yes, How can i do that args: { arg1: string, arg2: Any } Tried this and it said undefined identifier : string...

Storing additional data in session

Hi everyone 😉 I'm exploring a possibility to develop my new project in WASP which looks really awesome! However, I've got a question related to auth and was not able to find the answer... In my case user can belong to multiple organisations and switch between them once logged in. I'd like to store the current org ID in session is there any way to do it? I've been using blitz in my previous projects and it has ctx.session.$setPublicData() which is neat (https://blitzjs.com/docs/session-manag...

OAuth Login Error with Google Credentials in Local Environment

Hello everyone, I need a bit of help. In my local environment, I've correctly set up the GOOGLE_CLIENT_ID and GOOGLE_CLIENT_SECRET in my .env.server file and also configured the WASP_WEB_CLIENT_URL to http://localhost:3000. Despite this, after attempting to log in, I'm encountering an error that says, 'An unknown error occurred while trying to log in with the OAuth provider.' Could anyone please advise on what might be going wrong? Thank you in advance for your assistance!

Typescript not validating included relation

This is likely due to my inexperience with typescript, but I've been trying to access a related property that I've included on a query, but for some reason typescript isn't validating that it's a valid property. I think it only has scalar properties available. ``` const { data: team, status } = useQuery(getTeamById, { id: props.match.params.id }); console.log(team.logo);...

customize auth UI button shape

Hi, I see there is an appearance to customize the color of the auth UI, how can I change the shape or add more details? @miho...

Starlight missing trailing slash

Starlight's sidebar doesn't include a trailing slash ("/") at the end of the URL, leading to a 301 redirect to the page. It is a minor thing, but SEO-wise it is not great. I tried to look it up online but couldn't find any solution 😦

Suggested cookie consent plugin?

I have been trying a few cookie consent plugins for React, but none seem to work well with Wasp (e.g., cookie-consent). As I am in EU, it needs to accept/decline the user consent. Is there any recommended package for it?

paypal & other payment gateway integration

I am curious if there is guideline/template for integration of other payment gateway apart from stripe.

Google Tag Manager

Hey everyone, I am implementing Google Tag Manager according to the instructions (attached). The <head> block can be included directly in the head main.wasp file, but where do you recommend putting the <body> part? Should I put it in App.tsx since that one is the layout for the other components?...
No description

custom http api endpoint

Hello. I am following some of the documents for custom http api endpoint. 8 gave an 'api foobar' defined in the main.wasp but when I try to import foobar from 'wasp/server/api' in the api ts file it says 'no export member 'foobar'' . Am I missing something?...

Is it possible to customise titles of Auth component?

I create an app in french, I can't let it in english. I saw I can customize the colors but that's not enough.

Database not started on setting up the project

I have just worked with Wasp-lang and trying to run the first project. The error occurs when I try to wasp start. It said the database is not started even though it is SQlite DB. Wasp version: 0.13.2 System: MacOS M1...
No description

error schema.prisma:63

Hi Guys, i get the following error when creating a new project in wasp it says schema.primsa is already in use but i completely removed the dir where the previous project was and i tried to uninstall wasp / clean wasp nothing yet has worked. What else can i do? Thank you. error: The model "Session" cannot be defined because a model with that name already exists. [ Db !] --> schema.prisma:63...