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

Pre-commit hook fails #366

Open
ir4y opened this issue Nov 14, 2024 · 1 comment
Open

Pre-commit hook fails #366

ir4y opened this issue Nov 14, 2024 · 1 comment
Assignees

Comments

@ir4y
Copy link
Member

ir4y commented Nov 14, 2024

yarn run v1.22.22
$ tsc
Done in 5.23s.
yarn run v1.22.22
$ /Users/ilyabeda/projects/beda/fhir-emr/node_modules/.bin/lint-staged
[STARTED] Preparing lint-staged...
[SUCCESS] Preparing lint-staged...
[STARTED] Running tasks for staged files...
[STARTED] .lintstagedrc — 2 files
[STARTED] *.{js,jsx,ts,tsx} — 1 file
[STARTED] eslint --fix
[FAILED] eslint --fix [FAILED]
[FAILED] eslint --fix [FAILED]
[FAILED] eslint --fix [FAILED]
[STARTED] Applying modifications from tasks...
[SKIPPED] Skipped because of errors from tasks.
[STARTED] Reverting to original state because of errors...
[SUCCESS] Reverting to original state because of errors...
[STARTED] Cleaning up temporary files...
[SUCCESS] Cleaning up temporary files...

✖ eslint --fix:

Oops! Something went wrong! :(

ESLint: 8.44.0

TypeError: Failed to load plugin 'storybook' declared in '.eslintrc.cjs': Class extends value undefined is not a constructor or null
Referenced from: /Users/ilyabeda/projects/beda/fhir-emr/.eslintrc.cjs
    at Object.<anonymous> (/Users/ilyabeda/projects/beda/fhir-emr/node_modules/eslint-plugin-storybook/node_modules/@typescript-eslint/utils/dist/ts-eslint/eslint/LegacyESLint.js:12:51)
    at Module._compile (node:internal/modules/cjs/loader:1358:14)
    at Module._extensions..js (node:internal/modules/cjs/loader:1416:10)
    at Module.load (node:internal/modules/cjs/loader:1208:32)
    at Module._load (node:internal/modules/cjs/loader:1024:12)
    at Module.require (node:internal/modules/cjs/loader:1233:19)
    at require (node:internal/modules/helpers:179:18)
    at Object.<anonymous> (/Users/ilyabeda/projects/beda/fhir-emr/node_modules/eslint-plugin-storybook/node_modules/@typescript-eslint/utils/dist/ts-eslint/ESLint.js:8:22)
    at Module._compile (node:internal/modules/cjs/loader:1358:14)
    at Module._extensions..js (node:internal/modules/cjs/loader:1416:10)
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
husky - pre-commit hook exited with code 1 (error)
@ruscoder
Copy link
Member

ruscoder commented Dec 5, 2024

@ir4y Maybe it's outdated, please double check on master branch with deleting all node modules and close if it's not relevant

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants