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

"missing script: lint-staged" with v0.34.0-canary.3 #116

Closed
medihack opened this issue Apr 11, 2021 · 0 comments · Fixed by blitz-js/blitz#2213
Closed

"missing script: lint-staged" with v0.34.0-canary.3 #116

medihack opened this issue Apr 11, 2021 · 0 comments · Fixed by blitz-js/blitz#2213

Comments

@medihack
Copy link

medihack commented Apr 11, 2021

What is the problem?

I created a new Blitz project from scratch (blitz new blitz-test) and tried to commit a change. When trying to commit I get the following error message

npm ERR! missing script: lint-staged
npm ERR! A complete log of this run can be found in:
npm ERR!     /home/kai/.npm/_logs/2021-04-11T21_02_39_664Z-debug.log
husky - pre-commit hook exited with code 1 (error)

When I change the .husky/pre-commit and .husky/pre-push to use yarn instead of npm the commit works fine.

What are detailed steps to reproduce this?

  • blitz new blitz-test
  • cd blitz-test
  • Edit a file
  • Stage the change
  • Try to commit the change

Run blitz -v and paste the output here:

Linux 5.4 | linux-x64 | Node: v14.16.1

blitz: 0.34.0-canary.3 (global)
blitz: 0.34.0-canary.3 (local)

  Package manager: yarn
  System:
    OS: Linux 5.4 Ubuntu 20.04.1 LTS (Focal Fossa)
    CPU: (8) x64 Intel(R) Core(TM) i7-8650U CPU @ 1.90GHz
    Memory: 6.21 GB / 12.42 GB
    Shell: 5.0.17 - /bin/bash
  Binaries:
    Node: 14.16.1 - ~/.nvm/versions/node/v14.16.1/bin/node
    Yarn: 1.22.10 - /mnt/c/Users/kaisc/AppData/Roaming/npm/yarn
    npm: 6.14.12 - ~/.nvm/versions/node/v14.16.1/bin/npm
    Watchman: Not Found
  npmPackages:
    @prisma/client: ~2.20 => 2.20.1
    blitz: 0.34.0-canary.3 => 0.34.0-canary.3
    prisma: ~2.20 => 2.20.1
    react: 0.0.0-experimental-6a589ad71 => 0.0.0-experimental-6a589ad71
    react-dom: 0.0.0-experimental-6a589ad71 => 0.0.0-experimental-6a589ad71
    typescript: ~4.2 => 4.2.4
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
3 participants