Wasp

W

Wasp

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

Join

'Network Error' When Accessinging Wasp App From Mobile Device

Hi all! I've made some exciting progress on a Wasp app I have been building, and I want to test it out on my physical iPhone connected to the same WiFi network as my desktop that is running my dev server. I am not a networking guru, so I apologize if the following question is silly: What is not working: When I navigate to my app login page via my desktop's private IP on my phone, (192.168.1.17:3000/login), I am presented with the Wasp login page, per usual. But when I attempt to actually login with a valid account, I get a 'Network Error' toast What I have done:...

issues with fly deploy

@kapa.ai im having fly deploy issues where it hangs up on depot builder. There seems to be work arounds using flyctl deploy --depot=false but that doesnt sem to work with wasp. any thoughts?

v2 migration

will there be a guide for migrating v1 - v2 for open sass i just finished my project lol

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