Wasp

W

Wasp

Rails-like framework for React, Node.js and Prisma. Build your app in a day and deploy it with a single CLI command.

Join

Redirection after updating User entity doesn't pick up last updates

I'm following the example in https://wasp.sh/docs/auth/social-auth/overview#example-allowing-user-to-set-their-username to complete the sign up by asking users to provide additional information in a SignupCompletionPage. Once I call the operation to update the User entity and I use navigate('/home') to redirect back to the home page, the HomePage receives an old version of user which causes a redirect back to the SignupCompletionPage again. It looks like the me user doesn't get invalidated...

Issues with shadcn select component and dialog

Kind of a weird question but has anyone had issues with select component from shadcn? The content for the select appears behind the dialog and is not accessible. Btw this is using shadcn@2.3 not the latest. I've tested the exact same thing outside wasp and it's working as usual... Just wondering if it has something to do with shadcn version or something šŸ¤”

error TS5083: Cannot read file '/app/tsconfig.json' when attempting to deploy to railway

Upgraded to 0.17, made the change to tsconfig.json as outlined in the migration guide and I'm getting that error during this step in deployment: āœ” Generated Prisma Client (v5.19.1) to ./../../../node_modules/@prisma/client in 158ms ...

Password Reset Page

Hi folks, am I correct in that there is no redirect or success action after resetting a password via email/password auth? I see a confirmation saying Your password has been reset. but wasp should either redirect me to my dashboard/index after setting the new password or redirect to the login page. Leaving me with a form asking for my new password seems wrong
No description

Getting this ts error since updating to wasp 0.17.0

[ Server ] src/actions/addCommentReply.ts(3,33): error TS5097: An import path can only end with a '.ts' extension when 'allowImportingTsExtensions' is enabled. [ Server ] src/actions/addToCollection.ts(3,33): error TS5097: An import path can only end with a '.ts' extension when 'allowImportingTsExtensions' is enabled. [ Server ] src/actions/aiSynthesis.ts(3,29): error TS5097: An import path can only end with a '.ts' extension when 'allowImportingTsExtensions' is enabled. [ Server ] src/actions/analyzeMultiCardRequest.ts(3,41): error TS5097: An import path can only end with a '.ts' extension when 'allowImportingTsExtensions' is enabled. [ Server ] src/actions/completeOnboarding.ts(3,36): error TS5097: An import path can only end with a '.ts' extension when 'allowImportingTsExtensions' is enabled....

env variable undefined in fly.io

My .env.client includes the secret REACT_APP_API_HOST, and when I log it in the client locally as console.log(import.meta.env.REACT_APP_API_HOST), it returns the right value. I deployed the app to Fly.io and also set the client secret REACT_APP_API_HOST, but when I console.log it, it returns undefined. WHy does Fly.io not read the secret, even though it's been set?...

CORS error when deployed to fly.io and using custom domain

I've deployed my Opensaas ap to fly.io (https://zigozi-server.fly.dev and -client.fly.dev), and configured https://zigozi.com (registered at a different hosting company) to resolve to it (to the fly.io) but when I visit zigozi.com, I get the error "Access to XMLHttpRequest at 'https://zigozi-server.fly.dev/auth/me' from origin 'https://zigozi.com' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource.". How do I address this?...

after updating the user object i want to manually invalidate the user

after updating the user object i want to manually invalidate the user so that the next time useAuth() is called it refetches the new user object from the server

Custom Server environment variable

I have tried adding a new custom server env variable. Refer to below. import { env } from 'wasp/server' console.log(env.SOME_VAR_NAME)...

What is the best way to stream info from server?

I am looking into streaming progress updates from the server to the front end, is the best way of doing this sockets? Or is there an easier way? Thank you!...

api

Can you use res.redirect in an api?

GitHub Actions - STRIPE_DEVICE_NAME

I'm trying to setup my e2e testing and CI/CD stuff on GitHub. It's asking me for the enviroment variable "STRIPE_DEVICE_NAME" which according to this documentation "the device name for the CLI, visible in the Dashboard." - only I can't find it anywhere in the Stripe UI. @kapa.ai...

Split schema.prisma?

maybe sounds weird split a DB but mine its getting kinda long (like my main.wasp but this I can split with the TSX config)
Solution:
@NEROX Yep, it makes sense! Unfortunately, as the bot says, it's not possible right now.

Deploying to Fly.io with KeyCloak Authentication

Are there specifal steps involved for deploying to Fly.io with keycloak authentication? During local development, keycloak's real url is set to localhost:8080 and works fine. But what do I set it to when deploying to fly.io?

module error

im getting a module error which wasnt there before, requiring me to add .js extensions to all imports. whats causing this? ^ [ Server!] [ Server!] Error [ERR_MODULE_NOT_FOUND]: Cannot find module '/home/guinness/PetTreat/pets/app/.wasp/out/sdk/wasp/dist/ext-src/emails/orderjwt' imported from /home/guinness/PetTreat/pets/app/.wasp/out/sdk/wasp/dist/ext-src/emails/operations.js [ Server!] at __node_internal_captureLargerStackTrace (node:internal/errors:496:5) [ Server!] at new NodeError (node:internal/errors:405:5)...

Custom API - logs out user on failure

@kapa.ai - I have a 401 error on a custom end point. When it happens, the user gets logged out - can you search the discord for similar discussions. If you can't, i'll share some more infomation.

help me find this event

looking for a week10 kickoff release event

Wasp module error

Im getting an error saying the file cannot be found. Whats causing this? [ Server ] šŸ” Validating environment variables... [ Server!] node:internal/modules/esm/resolve:275 [ Server!] throw new ERR_MODULE_NOT_FOUND( [ Server!] ^...

Module Resolution Setting being weird?

I got this error when attempting to use state-in-url:
import {useUrlState} from "state-in-url/react-router";
import {useUrlState} from "state-in-url/react-router";
...

AI cursor rules and whatnot are very biased towards operations and not APIs

What is the sentiment towards a more nuanced AI rules text that differentiates better between operations and api use cases? It would be nice if I could fill in a few details about my app like "its a mobile app so i need the default client-server communication to use APIs." as the last users edited customized rule file. Then other places it could omit saying things like "prefer operations" and give api's just as much examples in the rules. I've made those changes locally (and will be testing them...