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

jake aborted - unable to make/build ejs #762

Closed
davidmoonraw opened this issue May 26, 2024 · 2 comments
Closed

jake aborted - unable to make/build ejs #762

davidmoonraw opened this issue May 26, 2024 · 2 comments

Comments

@davidmoonraw
Copy link

Below is the error:

  269:1    error  Expected linebreaks to be 'LF' but found 'CRLF'  linebreak-style
    270:4    error  Expected linebreaks to be 'LF' but found 'CRLF'  linebreak-style
  
  ✖ 3343 problems (3343 errors, 0 warnings)
    3343 errors and 0 warnings potentially fixable with the '--fix' option.
  
  jake aborted.
  Error: Command failed: node_modules\.bin\eslint "**/*.js"
      at genericNodeError (node:internal/errors:984:15)
      at wrappedFn (node:internal/errors:538:14)
      at checkExecSyncError (node:child_process:890:11)
      at execSync (node:child_process:962:15)
      at exec (C:\Users\davidmoonraw\Documents\dev\lens\client\ejs\jakefile.js:5:3)
      at Task.action (C:\Users\davidmoonraw\Documents\dev\lens\client\ejs\jakefile.js:24:3)
      at Task.run (C:\Users\davidmoonraw\Documents\dev\lens\node_modules\jake\lib\task\task.js:329:29)
      at process.processImmediate (node:internal/timers:478:21)

I've also come across:

jake aborted. Error: Unknown task "default" at Task.nextPrereq (C:\Users\davidmoonraw\Documents\dev\lens\node_modules\jake\lib\task\task.js:222:15) at process.processImmediate (node:internal/timers:478:21)

Steps taken:

  • Installed jake as devdependencies
  • Installed jake as dependencies
  • Edited exec(epath+' "**/*.js"'); as just /*.js
  • Reviewed Issues
  • Checked stackoverflow with jake tag
  • Cross checked Chatgpt
  • Followed readme instructions
  • Tested absolute and relative paths
  • Used npx

Kindly aasist

@phanect
Copy link
Contributor

phanect commented May 26, 2024

This seems the ESLint errors.
CRLF line breaks are included somewhere in this repo while it is forbidden by ESLint.

As a workaround, you can run npx eslint --fix to replace all the CRLF linebreaks with LF.

@davidmoonraw
Copy link
Author

@phanect yeah it appears that included everywhere. Looks like linebreak-style deprecated as per Rules Reference . Anyway can't be more obvious than what you mentioned. Thanks for your input.

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