You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
After running blitz new and blitz build the build fails.
Checked on versions:
Blitz 2.0.0-beta.33 & Next 13.4.5
Blitz 2.0.0-beta.34 & Next 13.5.4 (installed manually after blitz new)
Paste all your error logs here:
Using Formik:
Linting and checking validity of types .Failed to compile.
./src/core/components/Form.tsx:49:7
Type error: Type '({ handleSubmit, isSubmitting }: FormikProps<any>) => Element' is not assignable to type '(ReactNode | ((props: FormikProps<any>) => ReactNode)) & (({ handleSubmit, isSubmitting }: FormikProps<any>) => Element)'.
Type '({ handleSubmit, isSubmitting }: FormikProps<any>) => Element' is not assignable to type 'string & (({ handleSubmit, isSubmitting }: FormikProps<any>) => Element)'.
Type '({ handleSubmit, isSubmitting }: FormikProps<any>) => Element' is not assignable to type 'string'.
47 | }}
48 | >
> 49 | {({ handleSubmit, isSubmitting }) => (
| ^
50 | <form onSubmit={handleSubmit} className="form" {...props}>
51 | {/* Form fields supplied as children are rendered here */}
52 | {children}
Using React Final Form or React Hook Form
Linting and checking validity of types ...Failed to compile.
./src/pages/404.tsx:17:8
Type error: 'ErrorComponent' cannot be used as a JSX component.
Its instance type 'ErrorComponent<{ statusCode: 404; title: "This page could not be found"; }>' is not a valid JSX element.
The types returned by 'render()' are incompatible between these types.
Type 'Element' is not assignable to type 'ReactNode'.
Property 'children' is missing in type 'Element' but required in type 'ReactPortal'.
15 | </title>
16 | </Head>
> 17 | <ErrorComponent statusCode={statusCode} title={title} />
| ^
18 | </>
19 | )
20 | }
Paste all relevant code snippets here:
What are detailed steps to reproduce this?
Run blitz new app
Run cd app
For Blitz 2.0.0-beta.34, change package versions to those listed here #4237 and run yarn install
When using Formik there is an additional Type error:
Linting and checking validity of types ..Failed to compile.
./src/pages/auth/reset-password.tsx:35:13
Type error: Type 'string | undefined' is not assignable to type 'string'.
Type 'undefined' is not assignable to type 'string'.
33 | password: "",
34 | passwordConfirmation: "",
> 35 | token,
| ^
36 | }}
37 | onSubmit={async (values) => {
38 | try {
What is the problem?
After running
blitz new
andblitz build
the build fails.Checked on versions:
blitz new
)Paste all your error logs here:
Using
Formik
:Using
React Final Form
orReact Hook Form
Paste all relevant code snippets here:
What are detailed steps to reproduce this?
blitz new app
cd app
yarn install
blitz build
Run
blitz -v
and paste the output here:Please include below any other applicable logs and screenshots that show your problem:
No response
The text was updated successfully, but these errors were encountered: