Wasp-lang

W

Wasp-lang

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

Join

error with import: import { Routes, Route, RouteObject } from 'react-router-dom';

Routes and RouteObject are underlined in red, but im using the latest version "[email protected]" I can't seem to fix this problem

don't need to check this question only need kapa for debug :) will close after.

kapa I got an issue with the max width function "max-w-7x1" I need to overwrite this for my /webapp page so my own dashboard I need the full widht of the page and not limited by the max-w-7x1 styling. and that is 80 rem. but I can't find this styling anywhere in my folder. where can I find this and how can I overwrite this just for my /webapp page so it doesn't change for the landing page and stuff.

After running a database migration locally, all my database deleted - how to prevent in prod?

I did a necessary migration where I converted a property of an entity to be unique. The migration all appeared to go smoothly, but after testing I realised it had actually deleted all the data locally, so the database is empty aside from the tables I already set up. I want to be able to do this in production, but maintain my existing data. What's the best way?

onAfterLogin hook crashing the server

I'm trying to implement the v0.14.1 onAfterLogin hooks but after logging in with email it loads for like 20seconds and after gives error to the console. This error is logged out hundreds of times ```[ Server!] This is caused by either a bug in Node.js or incorrect usage of Node.js internals. [ Server!] Please open an issue with this stack trace at https://github.com/nodejs/node/issues...

wasp app wont start

I got on today and did wasp start today in my WSL console and now im getting this error.. anyone have any ideas?
No description

Organization management

can this be implemented here's an example i found https://saasdemo.rapidlaunch.xyz/ - Create Organization - Edit Organization - Delete Organization...

using the same navbar from the landingpage for the pricing page and removing the other navbar.

I wan't to only use the landingpage navbar, because my webapp will be a completely different UI with a different navbar. so I want the pricing navbar to be the same as the landingpage navbar. and don't use the other navbar. (i'll build a different navbar for my webapp but I need the fullscreen for it to look nice so not a navbar on the top the whole time and a vertical one on the left.

Trouble setting up a cron job

I'm trying to set up a cron job, but I'm getting an odd error message: ``` node:internal/errors:496 ErrorCaptureStackTrace(err); ^...

Best practices for splitting queries and operations

Hello, as I'm getting familiar with Wasp and OpenSaaS, I've hit a doubt I'd like to solve before I add too many functionalities to my project. Following the vertical feature structure in OpenSaaS, is it advised that I create operations.ts and query.ts under each functionality that requires them, or should I keep them in the top-level operations.ts and queries.ts files? To make it visual...

colors/styling not changing for webapp when changing to dark mode.

When changing to dark mode the colors aren't changing properly for the webapp I build with mage AI. the background stays white and somet text does change but becomes white for some reason. how can I change this styling?

cannot find module ...payment/plans

[ Server!] Error [ERR_MODULE_NOT_FOUND]: Cannot find module '/home/sven/SaaS/p/app/.wasp/out/sdk/wasp/dist/ext-src/payment/plans' imported from /home/sven/SaaS/p/app/.wasp/out/sdk/wasp/dist/ext-src/payment/operations.js [ Server!] at __node_internal_captureLargerStackTrace (node:internal/errors:496:5) [ Server!] at new NodeError (node:internal/errors:405:5) [ Server!] at finalizeResolution (node:internal/modules/esm/resolve:327:11) [ Server!] at moduleResolve (node:internal/modules/esm/resolve:946:10)...

How can i avoid that a user can "signup" twice with the same email address?

At the moment, it's possible for users to sign up with the same email address and still get this confirmation message on the signup page: You've signed up successfully! Check your email for the confirmation link. In the database, nothing changes if the email address already exists but how can I check upfront as part of the sign up process if the email address already exists?...

Server URL is incorrect when deployed

Hi guys, so after trying to deploy my app, adding my domain, various deployments, restarts etc I finally got it deployed. The client and server are both running. However, the client cannot make requests to the server. The client is making requests to a hostname which doesn't exist (https://frosty-pond-etc instead of https://autumn-pine-etc). I tried checking the toml file on the server, the name is correct. I tried setting it up like REACT_APP_API_URL=https:/autumn-pine-etc wasp deploy fly dep loy ...

getting error when implementing a query

I am implementing a query that gets user credentials form the db, uses these to fetch data and return the data to the client side. But i get this error: [ Wasp ] server/operations/queries/index.ts(63,14): error TS2322: Type '(args: unknown, context: { user: AuthUser; }) => Promise<Payload>' is not assignable to type '(args: any, context: { user: AuthUser; }) => Promise<void | { [date: string]: OrderData; }>'. [ Wasp ] Type 'Promise<Payload>' is not assignable to type 'Promise<void | { [date: string]: OrderData; }>'. [ Wasp ] Type 'Payload' is not assignable to type 'void | { [date: string]: OrderData; }'....

simple question that the kapa.ai will probably help me with :) |adding my .txs webapp UI layout how?

I've build a .TSX file with my UI dashboard for my webapp application. but how can I now add this to the boilerplate?

Cannot add new field to User entity

Just trying add a simple field called Settings which will be a Json? type, and when I run wasp db migrate-dev I gett an Error 'ext-src/server/scripts/usersSeed.ts(10,9): error TS2741: Property 'settings' is missing in type '{}' And I dont think I should be messing with the usersSeed.ts ......

has anyone implemented the GSC API in their Wasp project?

Any idea if I should add the Google Search Console scope to my regular oAuth or setup up entirely new credentials and consent screen for when someone wants to connect properties? The idea of the app is it pulls in your GSC data each day so you can visualize GSC data for multiple sites using custom filtering. Have the frontend built out but can't figure out GSC connection......

Backend public?

Is there a way that I can make my api accessible from localhost while its on prod? The current frontend and api are hosted already and working, but I want to also access it from localhost(for now) and other domains later on....

Stripe Webhook not firing when relevant events fire

I am trying to use the standard OpenSaaS implementation and have noticed that the stripe webhook does not fire at all even when the events are happening (I am testing it locally) - I've tried both just having it running and manually triggering the events and manually firing the events via the command line, but the stripe webhook doesn't run at all. I've added my STRIPE_WEBHOOK_SECRET to my env variables.

What's the easiest way to add a live chat script?

I'm wondering what's the easiest way to provide a live chat via an external JS script across all of my app pages? Do I have to include it in App.tsx? 🙂