-
-
Notifications
You must be signed in to change notification settings - Fork 780
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fresh blitz template project fails building because of type error #4201
Comments
Likewise, it's probable that an error has occurred due to tslog. I'll describe the error in detail below. What is the problem?When attempting to log in with an incorrect password, a "Bad Request" error message appears. Project Language: TypeScript Paste all your error logs here:
Paste all relevant code snippets here: <Form
submitText="Login"
schema={Login}
initialValues={{ email: "", password: "" }}
onSubmit={async (values) => {
try {
const user = await loginMutation(values)
props.onSuccess?.(user)
} catch (error: any) {
if (error instanceof AuthenticationError) {
return { [FORM_ERROR]: "Sorry, those credentials are invalid" }
} else {
return {
[FORM_ERROR]:
"Sorry, we had an unexpected error. Please try again. - " + error.toString(),
}
}
}
}}
> What are detailed steps to reproduce this?
Run blitz -v and paste the output here:
Please include below any other applicable logs and screenshots that show your problem: |
@justinsmid Can you take a look at this ? thx |
Seems like I do not know why the If I had to guess why, from a quick glance, I would suspect this |
thanks for the issue @espenja and your suggestion @justinsmid taking a look now. |
What is the problem?
Build fails because of type errors immediately after setting up a blitz template with the following settings:
Project Language: TypeScript
App Template: Full - includes DB and auth (Recommended)
Install dependencies?: pnpm
Pick a form library: React Hook Form
Paste all your error logs here:
Paste all relevant code snippets here:
What are detailed steps to reproduce this?
> blitz new blitztest
√ Pick a new project's language » TypeScript
√ Pick your new app template » Full - includes DB and auth (Recommended)
√ Install dependencies? » pnpm
√ Pick a form library (you can switch to something else later if you want) » React Hook Form
> pnpm build
Run
blitz -v
and paste the output here:Please include below any other applicable logs and screenshots that show your problem:
The text was updated successfully, but these errors were encountered: