Wasp

W

Wasp

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

Join

Is it possible to get extra fields including joins returned from `useAuth`

I.e I want to request user org permissions, which is only available via a join

deploy only client with fly

How do I deploy only the client with fly.io? I already have the server and database setup with fly, but want to migrate the client from Netlify.

Where can I find a complete reference of the available options in main.wasp?

Specifically i'm looking to see if there's any cookie settings. This is my chatGPT question and it might be hallucinating but it's hard to tell https://chatgpt.com/share/67928d8d-eb2c-8012-97f3-9ef9c1f7a161...

Fly.io stopped deploying

Hi! I'm testing deployment of my Wasp app to Fly.io. It was working perfectly for a while, but stopped working. I'm not quite sure what to make of these logs, and could use some guidance. I'm not sure why it went from just magically working to not working. I've attached the logs of my deployment attempt....

The PostCSS plugin has moved to a separate package

Hi there, I've just started a fresh template following all instructions. After running wasp start and visiting localhost:3000 I get the following error. I've review stackoverflow and also tried a fix from perplextiy to no avail. Would appreciate any kind of assistance....
No description

Cannot apply unknown utility class

Hello Wasp version 0.15.2, trying to go through the getting started steps for the OpenSaaS template and I'm getting this error:
[plugin:vite:css] [postcss] Cannot apply unknown utility class: lg:h-[calc(100vh_-_5.625rem)]
[plugin:vite:css] [postcss] Cannot apply unknown utility class: lg:h-[calc(100vh_-_5.625rem)]
...
No description

CORS middleware wasp generate bug

Was having a CORS issue so I did what one of the guides said and added. `// main.wasp server: { setupFn: import setup from "@src/serverSetup",...

cant access server after deploying

@kapa.ai my app cant access the server after deploying to fly. the local environemnt works though

re-deploy updates

@kapa.ai what is the command to redploy after changes to fy

Hyper-V not available for Windows 11 Home

I am attempting to set up WSL to proceed with Wasp but after a bit of research, it seems like Hyper-V is not available for Windows 11 Home. I get this error when I try to run the first command for installing WSL. Is there another way to run WSL and use Wasp for Windows? Any help is much appreciated!
No description

Custom endpoint missing context user

I've created a custom API endpoint that needs to be authenticated. As per the documentation, I set the auth field to true, but when a request is received, there's no Authorization header and the context.user object is null even though the user is logged in. I'm not sure what I'm missing? Do I need to set the header manually? For context, I have an API namespace applied to prevent the CORS errors I was experiencing initially. ```ts...

Prisma transactions

How can I use transactions in wasp?

How do you clear scheduled jobs?

I'd like to cancel a PgBoss job because I changed the logic, is there a way to clear it from the database?

Setting server secret env values and Stripe Webhook upon Fly.io deployment?

Hi, I'm working on launching my Wasp project! While I'm very excited, I'm also very confused. I'm using the 'wasp deploy fly' command with fly.io. The docs only very briefly mention the server secrets. It looks like I have to manually set each and every one? That's a bit troublesome as I'm using like 10 different values. Is this correct? You just have to manually set all those via commands? But more importantly, how does the Stripe Webhook get set? Don't we have to run that webhook via a terminal somewhere, get the generated value, then set it? How does this work with fly.io? Any guidance would be more than greatly appreciated!...

Issue with wasp start

Hi, I succesfully installed wasp on my pc using wsl for windows. I also successfully created a wasp project, but when I run wasp start, I get symlink errors. The first ss is error when I run wasp start for a new project, the second is error when i run wasp db migrate dev for an existing wasp project (usemage). I understand that this is an error wth permissions, but idk what to do, Please help......
No description

In development mode can I change the hostname of the server to something other than "localhost?"

I'd like to load my development site from my phone and other machines on my local network. I'm able to pull up the front-end on my phone, but the app doesn't work, because it sends all the server requests to "localhost:3000." I tried setting WASP_SERVER_URL but it didn't work.

waspc_datadir

Is there a reason why wasp's installer packages these TS apps in it's data directory? the documentation says this:
Wasp bundles some TypeScript packages into the installation artifact (eg: deployment scripts), which end up in the installed version's waspc_datadir. To do so in CI, it runs ./tools/install_packages_to_data_dir.sh.
But looking at references to the waspc_datadir, it's not used...

Stripe Problem! Everything works on dev, but not on prod

Classic, everything works on my end but not on prod. I highly suggest everyone to make a 100% coupon before your customers complain! When running on dev with the stripe webhook everything is fine and dandy. When running on prod with stripe and fly, I get 200s and delivered. ...

I get a blank page after running "cd <my-project-name>wasp start" (already migrated the db).

In the source code it says javascript must be enabled (see image) but it is enabled in my browser. I also get the following error in the console: Uncaught SyntaxError: The requested module 'http://localhost:3000/@fs/Users/phplaravel/Desktop/Flashcardsapp-z23my/.wasp/out/sdk/wasp/dist/client/router/index.js' doesn't provide an export named: 'useParams'. I hope someone can help me. ThaNKS...
No description