Wasp-lang

W

Wasp-lang

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

Join

"wasp start db" takes too much time.

Any solution for this? i seem to be stuck in a loop and i can't do "Wasp start" until this resolves....
No description

Best Practices for Implementing Auth System in Chrome Extension Connected to OpenSaaS

Hello, everyone! I'm currently developing a SaaS product and have created a Chrome extension. I'm at the stage where I need to implement an authentication system that connects the Chrome extension with our SaaS backend, which I've referred to as OpenSaaS for this example. The primary goal is to securely authenticate users through the Chrome extension, ensuring that only authorized users can access and use the extension's features. Here's what I have in mind for the authentication flow: - Users click on the extension icon and are prompted to log in through a popup if they aren't already authenticated....

Compile / Parse error with the ToDoAp

Hello all , I just downloaded and installed Wasp on Windows 11 with WSL2. The installation went fine and I am able to run the demo app. However, I then tried to install the Todoapp generated on Usemage.ai, and run it locally. It fails with the message :
--- [Error] Your wasp project failed to compile: Parse error: Path in external import must start with "@server/" or "@client/"!...

Possibility to disable wasp reload on UI file changes?

Hey my dudes, is it possible to calm down this guy on the screenshot from reloading everything every time UI files change? The issue is that I get everything hot reloaded thanks to Vite, and the app reloads itself few seconds afterwards again and so it happens on every change 🙏 much love to y'all...
No description

What's the best way to start with Wasp?

I'm looking for the best way to start with learning Wasp.

onAuthSucceededRedirectTo previous site

When I open a Link in my app where Auth is required but my session expired, I get redirected to the login site which is perfect. But i would love to make it possible to store the previous url so I get redirected to the previous page after successful login. Is something like this already possible and i just missed it or is it planned for the future? (or not at all?) I found this section in the docs, but it seems like it only supports static urls: https://wasp-lang.dev/docs/auth/overview#onauthsucceededredirectto-string...

Is there something missing? :(

I'm following this guide. https://wasp-lang.dev/blog/2023/11/21/guide-windows-development-wasp-wsl But since I'm using Ubuntu, idk if I'm doing it right. It looks like wasp still isn't installed. Please help. Thank you....
No description

dynamic variables in main.wasp

Is it currently possible to dynamically change configuration values in main.wasp? E.g for development I want to use Dummy as email sender, however in production I want to use mailgun....

Google Auth in Prod

I made my first try with the wasp deployment. So far its pretty straightforward, directly deploy to fly.io via cli - I like it very much. This time I am running again into an issue, where I am not even able to work out if its my Google-Config or my coding. In dev on my local machine it works well to use google auth....
No description

How can I get current theme colors and set them to div ?

I want to set background of a div according to the current selected theme. if dark theme is selected then the background should be dark and vice versa so that I can hide the chats visible from div. if you have any suggestion please feel free to suggest me, I am new to frontend dev with tailwind. ```tsx...
No description

Calling queries without useQuery hook

Hi, I'm trying to call a query directly, from the client, without using the hook, but couldn't figure out how to do so. I declared the query in the main.wasp file: ```typescript query getUserWritingAssistants {...

chat gpt integration docs

hi, is it possible to read some docs on chat gpt integration with wasp? I think it can be useful for someone that is just approaching to ai integration....

AxiosError

Hi! I'm encountering an error where the simple query for the demo ToDoApp using an SQLite DB, does not connect to the DB to do the query. It should show "No tasks", but instead shows "Error: AxiosError: Network Error". Everything is running on a local server on Linux (ubuntu). Wasp version 0.13.0. The Wasp terminal does not show any output on this error. Running "wasp db studio" allows me to see the database, and I was able to enter a single row through the :5555 interface. Any idea what might be going wrong here? It's like the prisma interface in wasp doesn't know how to query an sqlite db, but I don't know how to get any debug logs. Any ideas? Thanks!...

Need help with joined tables

Hi, I have some relations in my data schema. I have the type "questionnaire" which is linked to an entity called project:
`entity Questionnaire {=psl id String @id @default(uuid()) ......
No description

opensaas recompile

Hi guys, I used opensaas to develop a sass, I just replace some content in LandingPage.tsx,and my project is recompiling over and over again,do you guys know why and how to fix it?

Replace Vite after wasp gen?

After wasp generates all my files, is it possible to replace Vite with Next manually in a way that doesn't break wasp start?

looking for help trying to wasp start - keep getting node:events:496[ Client!] throw er; // U

I keep getting this error - have the rest upon request. I've stackoverflow'd, googled my heart out, nothing seems to be working. Issue spawning powershell from mnt/c help is appreciated, thanks in advance...

Dynamic change in main.wasp routing.

Hi, I’ve a question about dynamically changing main.wasp. For example, when I create a new linktree page I should write the name that will be in the url. Like linktr.ee/canc -> /:canc? Is it possible to create dynamic route in main.wasp to work like this? If not, is there a thing i can do to handle this situation?...

opensaas favicon

hi, how do you change the favicon using opensaas? I’ve changed the file in static, but I think it doesn’t change the favicon too.