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

Can't commit [example].tsx #4358

Closed
thesunny opened this issue Jul 2, 2021 · 0 comments
Closed

Can't commit [example].tsx #4358

thesunny opened this issue Jul 2, 2021 · 0 comments
Labels

Comments

@thesunny
Copy link
Collaborator

thesunny commented Jul 2, 2021

Description
Can't git commit due to this issue in lint-staged lint-staged/lint-staged#676

Can be fixed with an upgrade to prettier but may require updating the configuration.

Recording

# ... below has been commented out
 /Users/.../slate/node_modules/.bin/lint-staged
✔ Preparing...
⚠ Running tasks...
  ❯ Running tasks for *.{css,md,js,jsx,json,ts,tsx}
    ✖ prettier --write [FAILED]
    ◼ eslint --fix
↓ Skipped because of errors from tasks. [SKIPPED]
✔ Reverting to original state because of errors...
✔ Cleaning up...

✖ prettier --write:
[error] No matching files. Patterns tried: /Users/sunnyhirai/Projects/slate-7/site/pages/examples/[example].tsx !**/node_modules/** !./node_modules/** !**/.{git,svn,hg}/** !./.{git,svn,hg}/**
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

Steps
Make any change to pages/examples/[example].tsx and it won't allow the commit to continue.

Expectation
Should commit without error

Environment

  • Slate Version: latest
  • Operating System: OSX

Context
Trying to update the examples to include syntax highlighting but I can't because it won't allow the commit to go through.

@thesunny thesunny added the bug label Jul 2, 2021
@thesunny thesunny closed this as completed Jul 2, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant