WWWillems
WWWillems
WWasp-lang
Created by WWWillems on 8/16/2024 in #🙋questions
Error: Cannot find module '@node-rs/argon2-wasm32-wasi' when deploying to fly.io
Hello team Wasp! Suddenly I'm getting an Error: Cannot find module '@node-rs/argon2-wasm32-wasi' error when deploying my app to Fly.io. The app was already deployed and functional before this deploy, and I have changed nothing to the backend, so I'm not sure where this error is coming from?
30 replies
WWasp-lang
Created by WWWillems on 7/11/2024 in #🙋questions
Usage of getEmail
Maybe I'm missing something, but why does the getEmail() helper (see https://wasp-lang.dev/docs/auth/entities#getemail) only return an email address when the user has signed up using the email auth identity? I would expect it to return the user's email address for both social & email login types. My app offers both google & email auth logins and I would like to use this helper function to get the email address for all login methods. Currently I need to check which auth method the user has signed up with to know how I can use their email address.
12 replies
WWasp-lang
Created by WWWillems on 5/31/2024 in #🙋questions
Entity variations
Is there a way to create variations of generated Prisma entity types? (See docs: https://www.prisma.io/docs/orm/prisma-client/type-safety/operating-against-partial-structures-of-model-types#problem-using-variations-of-the-generated-model-type) I have a User entity that has a Role entity relation and would like to create a Wasp query that fetches both user data and the user role, returning it as 1 merged response object. Currently I'm manually defining the query response type but would love to learn if and how Prisma/Wasp can automatically take care of this for me by using the Prisma.validator approach as outlined in the docs.
16 replies
WWasp-lang
Created by WWWillems on 5/28/2024 in #🙋questions
How do you get the user's email address when using Google login?
After upgrading to Wasp 0.13 it seems I can't get the User's email address anymore? The getEmail function returns null, as I'm using Google login ot authenticate the user. How can I get the user's email address when using social login?
10 replies
WWasp-lang
Created by WWWillems on 5/25/2024 in #🙋questions
Broke wasp db studio after migrating from Wasp 0.11 to 0.13
Hi 👋 Wasp db studio seems to break after migrating from Wasp 0.11 to 0.13. I've followed the guide as outlined in the documentation, so I've first upgraded to 0.12 and afterwards to 0.13. However, when I now try to run wasp db studio I'm getting following error: Any idea on how to resolve this?
[ Db ] Environment variables loaded from .env
[ Db ] Prisma schema loaded from ../db/schema.prisma
[ Db ] Prisma Studio is up on http://localhost:5555
[ Db !] node:internal/process/promises:289
[ Db !] triggerUncaughtException(err, true /* fromPromise */);
[ Db !] ^
[ Db !]
[ Db !] [Error: ENOENT: no such file or directory, rename '/Users/MY_USERNAME/Library/Caches/checkpoint-nodejs/.71912.0' -> '/Users/MY_USERNAME/Library/Caches/checkpoint-nodejs/prisma-studio-default'] {
[ Db !] errno: -2,
[ Db !] code: 'ENOENT',
[ Db !] syscall: 'rename',
[ Db !] path: '/Users/MY_USERNAME/Library/Caches/checkpoint-nodejs/.71912.0',
[ Db !] dest: '/Users/MY_USERNAME/Library/Caches/checkpoint-nodejs/prisma-studio-default'
[ Db !] }
[ Db !]
[ Db !] Node.js v20.3.0
Internal Wasp error (bug in compiler):
This should never happen, studio should never stop.
CallStack (from HasCallStack):
error, called at cli/src/Wasp/Cli/Command/Db/Studio.hs:29:3 in waspc-0.13.2-inplace-cli-lib:Wasp.Cli.Command.Db.Studio
[ Db ] Environment variables loaded from .env
[ Db ] Prisma schema loaded from ../db/schema.prisma
[ Db ] Prisma Studio is up on http://localhost:5555
[ Db !] node:internal/process/promises:289
[ Db !] triggerUncaughtException(err, true /* fromPromise */);
[ Db !] ^
[ Db !]
[ Db !] [Error: ENOENT: no such file or directory, rename '/Users/MY_USERNAME/Library/Caches/checkpoint-nodejs/.71912.0' -> '/Users/MY_USERNAME/Library/Caches/checkpoint-nodejs/prisma-studio-default'] {
[ Db !] errno: -2,
[ Db !] code: 'ENOENT',
[ Db !] syscall: 'rename',
[ Db !] path: '/Users/MY_USERNAME/Library/Caches/checkpoint-nodejs/.71912.0',
[ Db !] dest: '/Users/MY_USERNAME/Library/Caches/checkpoint-nodejs/prisma-studio-default'
[ Db !] }
[ Db !]
[ Db !] Node.js v20.3.0
Internal Wasp error (bug in compiler):
This should never happen, studio should never stop.
CallStack (from HasCallStack):
error, called at cli/src/Wasp/Cli/Command/Db/Studio.hs:29:3 in waspc-0.13.2-inplace-cli-lib:Wasp.Cli.Command.Db.Studio
11 replies
WWasp-lang
Created by WWWillems on 11/3/2023 in #🙋questions
ETA for smarter merging of accounts
Is there any ETA for the 'smarter merging of accounts'? I made an app with email & social auth that relies on users inviting other users to their workspaces. I'm a bit stuck as invited users can only login using their email and password, which is a bit confusing as I'm also offering social auth. Ofcourse their social auth doesn't work as they've registered using email/pass. 😭 Any tips on workarounds meanwhile?
7 replies
WWasp-lang
Created by WWWillems on 10/29/2023 in #🙋questions
How to seed production database using fly proxy -a <app_name>
Hi! I've successfully deployed my app to fly.io. Now I'm trying to seed my production database following the guide in this PR: https://github.com/wasp-lang/wasp/pull/1524/commits/baa9c01ce240c94a088de7fba6ac682b7748c98d But I'm stuck after (successfully) opening the tunnel. The tunnel command says Proxying local port 5432 to remote which looks ok. Problem is the tunnel stays open and I cant enter my next command. How do I open the tunnel in a headless way so I can run the actual seed? I've added the DATABASE_URL to my .env.server file. It would be nice if the documentation could be updated to include a dedicated part for this. I feel the PR linked above should also be a bit improved with the headless part. Thanks for all the work you've put in so far. I've really enjoyed using Wasp so far! 👏
21 replies