cmilazzo
WWasp
•Created by cmilazzo on 12/4/2024 in #🙋questions
redirect after login
@kapa.ai Redirect has been replaced with Navigate in modern react-router-dom versions.
11 replies
WWasp
•Created by cmilazzo on 12/4/2024 in #🙋questions
redirect after login
This almost works.
11 replies
WWasp
•Created by cmilazzo on 11/18/2024 in #🙋questions
update wasp after usemage.ai creation
Thanks Nerox. I found that as well. 🙂
18 replies
WWasp
•Created by cmilazzo on 11/18/2024 in #🙋questions
update wasp after usemage.ai creation
@kapa.ai I've updated wasp in my environment, but now the application complains about "- Your Wasp version does not match the app's requirements.
You are running Wasp 0.15.1.
This app requires Wasp ^0.14.2." How do I change my app dependency to wasp 0.15.1?
18 replies
WWasp
•Created by cmilazzo on 11/18/2024 in #🙋questions
update wasp after usemage.ai creation
@kapa.ai can you double-check the curl command above? I get a syntax error near unexpected token '|' when running it
18 replies
WWasp
•Created by cmilazzo on 11/18/2024 in #🙋questions
update wasp after usemage.ai creation
@kapa.ai thank you. Is there a way to tell which version of wasp I am currently using?
18 replies
WWasp
•Created by cmilazzo on 11/17/2024 in #🙋questions
react-router-dom version
👍 Thanks Miho!
8 replies
WWasp
•Created by cmilazzo on 10/15/2024 in #🙋questions
google auth
I figured out the issue. I had: userSignupFields: import { getGoogleUserFields } from "@src/auth/userSignupFields",
configFn: import { getGoogleAuthConfig } from "@src/auth/userSignupFields", in my google authenticate spec in main.wasp.
31 replies
WWasp
•Created by cmilazzo on 10/15/2024 in #🙋questions
google auth
@kapa.ai Aren't the src/auth/... files automatically generated by wasp? If so, why would they be missing?
31 replies
WWasp
•Created by cmilazzo on 10/15/2024 in #🙋questions
google auth
@kapa.ai I added the environment variables, and am now seeing this error: "[ Server!] [!] RollupError: Could not resolve "../../../../../../../src/auth/userSignupFields" from "src/auth/providers/config/google.ts"
[ Server!] src/auth/providers/config/google.ts
[ Server!] at getRollupError (/Users/cmilazzo/Code Projects/Hatchery/.wasp/out/server/node_modules/rollup/dist/shared/parseAst.js:285:41)
[ Server!] at Object.error (/Users/cmilazzo/Code Projects/Hatchery/.wasp/out/server/node_modules/rollup/dist/shared/parseAst.js:281:42)
[ Server!] at ModuleLoader.handleInvalidResolvedId (/Users/cmilazzo/Code Projects/Hatchery/.wasp/out/server/node_modules/rollup/dist/shared/rollup.js:21167:36)
[ Server!] at /Users/cmilazzo/Code Projects/Hatchery/.wasp/out/server/node_modules/rollup/dist/shared/rollup.js:21127:26
[ Server!]
[ Server!]
[ Server ] [nodemon] app crashed - waiting for file changes before starting..."
31 replies
WWasp
•Created by cmilazzo on 10/15/2024 in #🙋questions
google auth
@kapa.ai I tried using the google auth instructions from the doc, but ran into a "localhost refused to connect" error trying to access http://localhost:3001/auth/google/login when I click the "Login with Google" button
31 replies
WWasp
•Created by cmilazzo on 10/15/2024 in #🙋questions
google auth
Interestingly, I'm just now noticing that the ResetPasswordForm and ForgotPasswordForm code are also not present (i.e. <LoginForm/> results in the login form being shown on my page, but <ResetPasswordForm /> results in no code being entered. I'm wondering if this is related to the Mage app creation not including them somehow as well?
31 replies
WWasp
•Created by cmilazzo on 10/15/2024 in #🙋questions
google auth
@martinsos or @miho is there any advice you can give me on how to add the google auth to my project? I created my app using Mage, but didn't think to specify I needed Google authentication (actually, I didn't really know if I'd need it at the time). Do I need to copy some code from github?
31 replies
WWasp
•Created by cmilazzo on 10/15/2024 in #🙋questions
google auth
@kapa.ai Is there a way to add the Google auth components to an app that didn't have them built in? There is no Google.jsx file anywhere in my project!
31 replies
WWasp
•Created by cmilazzo on 10/15/2024 in #🙋questions
google auth
@kapa.ai I followed your instructions above, but now have this error: [ Client!] 3:56:48 PM [vite] Pre-transform error: Failed to resolve import "../forms/internal/social/SocialButton" from "../sdk/wasp/dist/auth/helpers/Google.jsx". Does the file exist?
[ Client!] 3:56:48 PM [vite] Internal server error: Failed to resolve import "../forms/internal/social/SocialButton" from "../sdk/wasp/dist/auth/helpers/Google.jsx". Does the file exist?
31 replies
WWasp
•Created by cmilazzo on 10/10/2024 in #🙋questions
delete entity
@kapa.ai I get this error with that code: server/operations/actions/index.ts(87,7): error TS2353: Object literal may only specify known properties, and 'User' does not exist in type '{ File: FileDelegate<RejectOnNotFound | RejectPerOperation, DefaultArgs>; }'.
14 replies
WWasp
•Created by cmilazzo on 10/10/2024 in #🙋questions
delete entity
@kapa.ai Can you redefine the deleteFile function using typescript?
14 replies
WWasp
•Created by cmilazzo on 10/10/2024 in #🙋questions
primitive type returns in action
@kapa.ai. okay, that makes sense. My original action definition is: export const createFile: CreateFile<FileDescription, File> = async ({ fileType, name, bucket}, context) => {}. How would I change that to use the Output type you referenced?
13 replies