Skip to content
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

'blitz new' is broken #4408

Closed
kksandr7 opened this issue Jan 20, 2025 · 0 comments · Fixed by #4409
Closed

'blitz new' is broken #4408

kksandr7 opened this issue Jan 20, 2025 · 0 comments · Fixed by #4409
Labels

Comments

@kksandr7
Copy link
Contributor

kksandr7 commented Jan 20, 2025

What is the problem?

Hello, creating an application via the blitz new command is broken because the codebase was updated to React 19, but the dependencies were not updated (#1, #2, #3, #4)

Paste all your error logs here:

./src/app/components/Form.tsx:7:38
Type error: Namespace 'React' has no exported member 'JSX'.

   5 |
   6 | export interface FormProps<S extends z.ZodType<any, any>>
>  7 |   extends Omit<PropsWithoutRef<React.JSX.IntrinsicElements["form"]>, "onSubmit"> {
     |                                      ^
   8 |   /** All your form fields */
   9 |   children?: ReactNode
  10 |   /** Text to display in the submit button */
error Command failed with exit code 1.

Paste all relevant code snippets here:

PASTE_HERE (leave the ``` marks)

What are detailed steps to reproduce this?

  1. Create a new application using the blitz new command.
  2. Run the application build with the command blitz build.

Run blitz -v and paste the output here:

litz version: 2.2.0 (global)
Blitz version: 2.2.0 (local)
Linux 6.5 | linux-x64 | Node: v20.12.2


 Package manager: npm

  System:
    OS: Linux 6.5 Ubuntu 24.04.1 LTS 24.04.1 LTS (Noble Numbat)
    CPU: (12) x64 Intel(R) Core(TM) i7-8750H CPU @ 2.20GHz
    Memory: 8.56 GB / 15.53 GB
    Shell: 5.2.21 - /bin/bash
  Binaries:
    Node: 20.12.2 - ~/.n/bin/node
    Yarn: 1.22.22 - ~/.n/bin/yarn
    npm: 10.5.0 - ~/.n/bin/npm
  npmPackages:
    @blitzjs/auth: 2.2.0 => 2.2.0 
    @blitzjs/next: 2.2.0 => 2.2.0 
    @blitzjs/rpc: 2.2.0 => 2.2.0 
    @prisma/client: 5.4.2 => 5.4.2 
    blitz: 2.2.0 => 2.2.0 
    next: 15.0.1 => 15.0.1 
    prisma: 5.4.2 => 5.4.2 
    react: 19.0.0 => 19.0.0 
    react-dom: 19.0.0 => 19.0.0 
    typescript: ^4.8.4 => 4.9.5

Please include below any other applicable logs and screenshots that show your problem:

No response

@kksandr7 kksandr7 added kind/bug Something isn't working status/triage labels Jan 20, 2025
@kksandr7 kksandr7 mentioned this issue Jan 20, 2025
5 tasks
github-merge-queue bot pushed a commit to vercel/vercel that referenced this issue Jan 24, 2025
Blitz 0.x won't build on Node > 16 so we need to bump this. Can't quite
tell why but every Blitz 2.x generator and every option in that
generator fails to build locally. We initially thought this was only
[related to latest
2.2.0](blitz-js/blitz#4408), but it's all of
them.

This one was hand massaged from a 2.0 generated project.

Interesting installing dependencies during a deploy via `pnpm` fails:
![CleanShot 2025-01-24 at 15 35
10@2x](https://github.com/user-attachments/assets/03552f18-6e88-4626-b8cd-eb5ef6fbc86c)

So this has a npm lockfile instead.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants