Build fails, commit fails
Opened this issue · 2 comments
Hi,
Build is failing as there is no 'pages' directory in this repo.
Also, while trying to commit, precommit runs eslint --fix command. But this doesn't succeed as there is no eslintconfig file or ignore condition.
Please help me with the fix. I am not able to add new component to the repository
Thanks
can you please provide detailed logs?
Here the logs:
1. Build failing issue:
D:\react-nitro-components>npm run build
fusion@1.0.0 build D:\react-nitro-components
next build
Couldn't find a
pages
directory. Please create one under the project root
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! fusion@1.0.0 build:next build
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the fusion@1.0.0 build script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
2. Commit issue
git commit -m "Test commit
husky > npm run -s precommit (node v8.9.4)
25lRunning tasks for *.{js,jsx,css,md} [started]
Running tasks for *.{js,jsx} [started]
npm run format-staged [started]
npm run lint-staged [started]
npm run lint-staged [failed]
→ × npm run lint-staged found some errors. Please fix them and try committing again.
Oops! Something went wrong! :(
ESLint: 4.19.1.
ESLint couldn't find a configuration file. To set up a configuration file for this project, please run:
eslint --init
ESLint looked for configuration files in D:\react-nitro-components\tests-config and its ancestors. If it found none, it then looked in your home directory.
If you think you already have a configuration file or if you need more help, please stop by the ESLint chat room: https://gitter.im/eslint/eslint
Running tasks for *.{js,jsx} [failed]
→ × npm run lint-staged found some errors. Please fix them and try committing again.
Oops! Something went wrong! :(
ESLint: 4.19.1.
ESLint couldn't find a configuration file. To set up a configuration file for this project, please run:
eslint --init
ESLint looked for configuration files in D:\react-nitro-components\tests-config and its ancestors. If it found none, it then looked in your home directory.
If you think you already have a configuration file or if you need more help, please stop by the ESLint chat room: https://gitter.im/eslint/eslint