blitz-js / blitz-js/blitz

`blitz new` generating wrong form package

Open
#4,357 3 comments 0 reactions 0 assignees View on GitHub
good first issue kind/bug status/triage
Dominant language
TypeScript
Stars
14.1k
Forks
803
PR merge metrics
No merged PRs in 30d

Description

### What is the problem?

When generating a new Blitz application I chose React Hook Form for my form package. However, it still went ahead and gave me Formik.

I'm assuming it's not a create-T3-app JavaScript-type joke where I have to use Formik against my will.

### Paste all your error logs here:

Screenshot 2024-07-11 at 9 19 25 AM

### Paste all relevant code snippets here:

Screenshot 2024-07-11 at 9 19 38 AM

### What are detailed steps to reproduce this?

1. Create a new Blitz app
2. Choose App Router template
3. Use pnpm to install dependencies
4. Choose React Hook Form for form library

### Run `blitz -v` and paste the output here:

```
Blitz version: 2.0.10 (global)
Blitz version: 2.0.10 (local)
macOS Sonoma | darwin-x64 | Node: v20.13.0

Package manager: pnpm

System:
OS: macOS 14.5
CPU: (12) x64 Intel(R) Core(TM) i9-8950HK CPU @ 2.90GHz
Memory: 5.04 GB / 32.00 GB
Shell: 5.9 - /bin/zsh
Binaries:
Node: 20.13.0 - ~/.nvm/versions/node/v20.13.0/bin/node
Yarn: 1.22.22 - /usr/local/bin/yarn
npm: 10.5.2 - ~/.nvm/versions/node/v20.13.0/bin/npm
npmPackages:
@blitzjs/auth: 2.0.10 => 2.0.10
@blitzjs/next: 2.0.10 => 2.0.10
@blitzjs/rpc: 2.0.10 => 2.0.10
@prisma/client: 5.4.2 => 5.4.2
blitz: 2.0.10 => 2.0.10
next: 14.1.4 => 14.1.4
prisma: 5.4.2 => 5.4.2
react: 18.2.0 => 18.2.0
react-dom: 18.2.0 => 18.2.0
typescript: ^4.8.4 => 4.9.5
```

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

pnpm version: 9.1.0
Node.js version: 20.13.0
npm version: 10.5.2

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.