Replies: 1 comment 4 replies
-
It is hard to guess without seeing your code, template, or package file, but:
I've been able to get v4 to work, but v5 doesn't seem to be working, it may need additional set up that is not (yet) documented by |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hey guys, just hit a rock with custom cra-template and was hoping someone could help (question on StackOverFlow)
I added
husky
,lint-staged
andprettier
to the official base cra-template. The problem is that thepre-commit
hook isn't triggered unless I re-add husky.Troubleshooting with
diff
, I noticed none of the githooks files are created in.git/hooks
directory by thecreate-react-app
process. The files only get created when I re-add husky.git clone https://github.com/piouson/cra-template-husky-test.git npx create-react-app test-app --template file:./cra-template-husky-test ls test-app/.git/hooks # notice only sample files present
Environment:
wsl2 Ubuntu 20.04.2 LTS | git v2.25.1 | node v10.23.0 | npm v7.5.6 | yarn v1.22.10
Beta Was this translation helpful? Give feedback.
All reactions