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

Show stack trace with Eleventy config errors #324

Closed
zellwk opened this issue Dec 4, 2018 · 2 comments
Closed

Show stack trace with Eleventy config errors #324

zellwk opened this issue Dec 4, 2018 · 2 comments
Assignees
Milestone

Comments

@zellwk
Copy link

zellwk commented Dec 4, 2018

I got this error message while configuring Eleventy:

Eleventy fatal error: (full stack in DEBUG output)
> Error in your Eleventy config file '/Users/zellwk/Projects/private-repos/zellwk/eleventy.js'. (EleventyConfigError)
> Unexpected token < (SyntaxError)

But I couldn't find the error when I ran Eleventy in DEBUG mode. Searched the logs and couldn't find an instance of Unexpected token < (SyntaxError)

Maybe showing the stack trace when the error happens would help improve dev experience?

@zachleat zachleat self-assigned this Dec 4, 2018
@zachleat
Copy link
Member

zachleat commented Dec 4, 2018

Current status:

image

Note for me: still needs love when the syntaxerror happens during --watch

@zellwk
Copy link
Author

zellwk commented Dec 4, 2018

This is already so useful!

@zachleat zachleat added this to the 0.7.0 milestone Dec 4, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants