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

Build fails, commit fails #1

Open
sohonisaurabh opened this issue Aug 6, 2018 · 2 comments
Open

Build fails, commit fails #1

sohonisaurabh opened this issue Aug 6, 2018 · 2 comments

Comments

@sohonisaurabh
Copy link

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

@vinaymavi
Copy link
Member

can you please provide detailed logs?

@sohonisaurabh
Copy link
Author

Here the logs:

1. Build failing issue:

D:\react-nitro-components>npm run build

[email protected] 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! [email protected] build: next build
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] 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

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

2 participants