Skip to content

next-ui recipe stuck "generating file diff"  #4189

@JackDevAU

Description

@JackDevAU

What is the problem?

I've just created a new project, without auth. I wanted to try and use next-ui using the blitz cli but when I use the blitz install next-ui command it fails to "generate file diffs"
When updating "the LabeledTextField wit Next UI's Input Component"

Paste all your error logs here:

  ERROR  The "path" argument must be of type string or an instance of Buffer or URL. Received undefined

 node:fs:592:10

 - Object.openSync (node:fs:592:10)
 - Object.readFileSync (node:fs:468:35)
 -  (recipe-install/node_modules/blitz/dist/installer.cjs:478:44)
 -     at Generator.next (<anonymous>)
 - fulfilled (recipe-install/node_modules/blitz/dist/installer.cjs:439:24)
 - processTicksAndRejections (node:internal/process/task_queues:95:5)

2023-08-02 14:39:49.850 ERROR   []
 TypeError  The "path" argument must be of type string or an instance of Buffer or URL. Received undefined
error stack:
  • fs  Object.openSync
        fs:592
  • fs  Object.readFileSync
        fs:468
  • \recipe-install\node_modules\blitz\dist\installer.cjs
        \recipe-install\node_modules\blitz\dist\installer.cjs:478
  •

  • \recipe-install\node_modules\blitz\dist\installer.cjs       fulfilled
        \recipe-install\node_modules\blitz\dist\installer.cjs:439
  • task_queues processTicksAndRejections
        internal\process\task_queues:95

Paste all relevant code snippets here:

N/A

What are detailed steps to reproduce this?

  1. Using the cli blitz new testing-blitz-next-ui
    1. √ Pick a new project's language » TypeScript
    2. √ Pick your new app template » Minimal — no DB, no auth
    3. √ Install dependencies? » npm
  2. cd into folder
  3. install next-ui blitz install next-ui
  4. See error when "Updating LabeledTextField"

Run blitz -v and paste the output here:

Blitz version: 2.0.0-beta.31 (global)
Blitz version: 2.0.0-beta.31 (local)
Windows 11 | win32-x64 | Node: v18.14.1


 Package manager: npm

  System:
    OS: Windows 10 10.0.22621
    CPU: (16) x64 11th Gen Intel(R) Core(TM) i7-11800H @ 2.30GHz
    Memory: 6.13 GB / 31.74 GB
  Binaries:
    Node: 18.14.1 - ~\scoop\apps\nvm\current\nodejs\nodejs\node.EXE
    Yarn: 1.22.19 - ~\scoop\apps\yarn\current\bin\yarn.CMD
    npm: 9.3.1 - ~\scoop\apps\nvm\current\nodejs\nodejs\npm.CMD
  npmPackages:
    @blitzjs/auth: 2.0.0-beta.31 => 2.0.0-beta.31
    @blitzjs/next: 2.0.0-beta.31 => 2.0.0-beta.31
    @blitzjs/rpc: 2.0.0-beta.31 => 2.0.0-beta.31
    @prisma/client: Not Found
    blitz: 2.0.0-beta.31 => 2.0.0-beta.31
    next: 13.4.5 => 13.4.5
    prisma: Not Found
    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:

image
Figure: Stuck generating file diff

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions