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

Capture .leorc Errors and show in console #178

Open
ChristopherBiscardi opened this issue May 11, 2017 · 0 comments
Open

Capture .leorc Errors and show in console #178

ChristopherBiscardi opened this issue May 11, 2017 · 0 comments

Comments

@ChristopherBiscardi
Copy link
Member

Errors in leo.config.js and similar can cause failure "for cosmicconfig". This results in an error you have to DEBUG out, which is a bad Developer Experience.

DEBUG=*,-babel,-css yarn start
yarn start v0.23.4
$ leo develop
  leo:develop:load-leorc parsing error { Error: Cannot find module 'hljs'
    at Function.Module._resolveFilename (module.js:470:15)
...
sa-labs/leo-core/node_modules/cosmiconfig/lib/loadJs.js:20:15 code: 'MODULE_NOT_FOUND' } +0ms
(node:26871) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 1): Error: error loading .leorc
(node:26871) DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
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

1 participant