-
-
Notifications
You must be signed in to change notification settings - Fork 423
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
Script fails when using grouped layouts in Next.js #1412
Comments
Hello, what is your lint-staged config? |
To rule out some configuration/environment issues, does it work with this kind of setup: // lint-staged config
export default {
"**/*.{js,jsx,ts,tsx}: ["eslint --fix", "prettier --write"]
} # Husky command to invoke lint-staged
npx lint-staged |
There is an official guide from next.js here https://nextjs.org/docs/app/building-your-application/configuring/eslint#lint-staged. Have you tried it? It worked for me the last time I tried. |
Hey! This is my lint-staged config file:
{
"**/*.{ts,tsx}": ["bun run prettier"]
} |
it also happens to me |
Description
When using Next.js (14.2.3) I create grouped layouts but when I try to commit my pages under a grouped layout it just won't work.
Tried multiple ways to check what was the error and it runs flawlessly if I remove the lint-staged run in the
pre-commit
executable from Husky.Doesn't work
Works
Steps to reproduce
Debug Logs
expand to view
Environment
lint-staged
: 15.2.2The text was updated successfully, but these errors were encountered: