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

Error Installing Tailwind Recipe: Path Argument Undefined #4386

Open
JuanQuiro opened this issue Oct 24, 2024 · 0 comments
Open

Error Installing Tailwind Recipe: Path Argument Undefined #4386

JuanQuiro opened this issue Oct 24, 2024 · 0 comments
Labels
kind/bug Something isn't working status/triage

Comments

@JuanQuiro
Copy link

What is the problem?

It seems that when I attempt to install the Tailwind recipe, the process gets stuck on the "generating file diff" message. After waiting for a moment, if I press Enter, I encounter the following error:

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

Paste all your error logs here:

npx blitz dev

Loaded env from /home/alberto/code/myAppName/.env.local
Loaded env from /home/alberto/code/myAppName/.env
✔ Next.js was successfully patched with a React Suspense fix
✔ Routes manifest was successfully generated
  ▲ Next.js 14.2.15
  - Local:        http://localhost:3000
  - Environments: .env.local, .env
  - Experiments (use with caution):
    · typedRoutes

 ✓ Starting...
 ✓ Ready in 3.6s
 ○ Compiling / ...
 ✓ Compiled / in 16.8s (1920 modules)
2024-10-24 12:32:07.781 INFO    [blitz-invoke]  getCurrentUser() Starting with input: null
2024-10-24 12:32:07.784 DEBUG   [blitz-invoke]  getCurrentUser() Result: null
2024-10-24 12:32:07.785 INFO    [blitz-invoke]  getCurrentUser() Finished: resolver:4ms serializer:0ms total:4ms
 GET / 200 in 17638ms
^C
> blitz install tailwind
Loaded env from /home/alberto/code/myAppName/.env.local
Loaded env from /home/alberto/code/myAppName/.env
✅ Installed 3 dependencies

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

 node:fs:588:10

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

2024-10-24 12:42:14.022 ERROR   []
 TypeError  The "path" argument must be of type string or an instance of Buffer or URL. Received undefined, value() {
          return `${this.name} [${key}]: ${this.message}`;
        }, ERR_INVALID_ARG_TYPE
error stack:
  • fs  Object.openSync
        fs:588
  • fs  Object.readFileSync
        fs:464
  • installer.cjs
        /recipe-install/node_modules/blitz/dist/installer.cjs:479
  •

  • installer.cjs       fulfilled
        /recipe-install/node_modules/blitz/dist/installer.cjs:440
  • task_queues processTicksAndRejections
        internal/process/task_queues:95
> blitz -v
Blitz version: 2.1.3 (global)
Blitz version: 2.1.3 (local)
Linux 6.8 | linux-x64 | Node: v18.20.4


 Package manager: npm

  System:
    OS: Linux 6.8 Ubuntu 24.04.1 LTS 24.04.1 LTS (Noble Numbat)
    CPU: (4) x64 Intel(R) Core(TM) i7-2640M CPU @ 2.80GHz
    Memory: 1.38 GB / 3.70 GB
    Shell: 5.9 - /usr/bin/zsh
  Binaries:
    Node: 18.20.4 - /run/user/1000/fnm_multishells/38490_1729786726788/bin/node
    Yarn: 1.22.22 - /run/user/1000/fnm_multishells/38490_1729786726788/bin/yarn
    npm: 10.7.0 - /run/user/1000/fnm_multishells/38490_1729786726788/bin/npm
  npmPackages:
    @blitzjs/auth: 2.1.3 => 2.1.3
    @blitzjs/next: 2.1.3 => 2.1.3
    @blitzjs/rpc: 2.1.3 => 2.1.3
    @prisma/client: 5.4.2 => 5.4.2
    blitz: 2.1.3 => 2.1.3
    next: 14.2.15 => 14.2.15
    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

~/code/myAppName master !2 ?3                                                                                                            12:42:35 PM
> cd ..

Paste all relevant code snippets here:

PASTE_HERE (leave the ``` marks)

What are detailed steps to reproduce this?


To reproduce this error, please follow these detailed steps:

  1. Set Up a New Blitz Project:

    • Open your terminal and create a new Blitz project using the following command:
      blitz new myAppName
      cd myAppName
  2. Install Tailwind Recipe:

    • Run the following command to install the Tailwind recipe:
      blitz install tailwind
  3. Observe the Output:

    • Pay attention to the console output. Keep loading in 'generating file diff blitz' , If you press enter, The error should appear similar to this:
      ERROR  The "path" argument must be of type string or an instance of Buffer or URL. Received undefined
      node:fs:588:10
      - Object.openSync (node:fs:588:10)
      - Object.readFileSync (node:fs:464:35)
      - (recipe-install/node_modules/blitz/dist/installer.cjs:479:44)
      - at Generator.next (<anonymous>)
      - fulfilled (recipe-install/node_modules/blitz/dist/installer.cjs:440:24)
      - processTicksAndRejections (node:internal/process/task_queues:95)
      
      2024-10-24 12:42:14.022 ERROR   []
      TypeError  The "path" argument must be of type string or an instance of Buffer or URL. Received undefined, value() {
           return `${this.name} [${key}]: ${this.message}`;
      }, ERR_INVALID_ARG_TYPE
      error stack:
      • fs  Object.openSync
            fs:588
      • fs  Object.readFileSync
            fs:464
      • installer.cjs
            /recipe-install/node_modules/blitz/dist/installer.cjs:479
      • installer.cjs       fulfilled
            /recipe-install/node_modules/blitz/dist/installer.cjs:440
      • task_queues processTicksAndRejections
            internal/process/task_queues:95
      

Run blitz -v and paste the output here:

> blitz -v
Blitz version: 2.1.3 (global)
Blitz version: 2.1.3 (local)
Linux 6.8 | linux-x64 | Node: v18.20.4


 Package manager: npm

  System:
    OS: Linux 6.8 Ubuntu 24.04.1 LTS 24.04.1 LTS (Noble Numbat)
    CPU: (4) x64 Intel(R) Core(TM) i7-2640M CPU @ 2.80GHz
    Memory: 1.38 GB / 3.70 GB
    Shell: 5.9 - /usr/bin/zsh
  Binaries:
    Node: 18.20.4 - /run/user/1000/fnm_multishells/38490_1729786726788/bin/node
    Yarn: 1.22.22 - /run/user/1000/fnm_multishells/38490_1729786726788/bin/yarn
    npm: 10.7.0 - /run/user/1000/fnm_multishells/38490_1729786726788/bin/npm
  npmPackages:
    @blitzjs/auth: 2.1.3 => 2.1.3
    @blitzjs/next: 2.1.3 => 2.1.3
    @blitzjs/rpc: 2.1.3 => 2.1.3
    @prisma/client: 5.4.2 => 5.4.2
    blitz: 2.1.3 => 2.1.3
    next: 14.2.15 => 14.2.15
    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:

image

@JuanQuiro JuanQuiro added kind/bug Something isn't working status/triage labels Oct 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug Something isn't working status/triage
Projects
None yet
Development

No branches or pull requests

1 participant