millermedeiros / esformatter

ECMAScript code beautifier/formatter
MIT License
970 stars 91 forks source link

Cannot read property 'value' of undefined #408

Closed jwaldrip closed 8 years ago

jwaldrip commented 8 years ago

Getting the following error when trying to run esformatter on this file: https://github.com/brandfolder/graphqlify/blob/develop/graph/typeHelpers.js

Cannot read property 'value' of undefined

millermedeiros commented 8 years ago

Is that the only message that you get? No stack trace or anything else?

jwaldrip commented 8 years ago

Correct


Jason Waldrip Chief Technology Officer Brandfolder.com email| jason.waldrip@brandfolder.com office |720-744-0311(tel:720-744-0311) mobile |646-460-5959(tel:646-460-5959)

On Feb 14, 2016, 9:16 PM -0700, Miller Medeirosnotifications@github.com, wrote:

Is that the only message that you get? No stack trace or anything else?

— Reply to this email directly orview it on GitHub(https://github.com/millermedeiros/esformatter/issues/408#issuecomment-184060191).

stevenp commented 8 years ago

I'm getting the same error on a file of mine, and it seems to be related to not having a semicolon at the end of the export line. If you add one, the error goes away. Hopefully this helps you track down why it's failing.

millermedeiros commented 8 years ago

v0.9.2 includes this fix! thanks for the bug report!

jwaldrip commented 8 years ago

Thanks!

On Feb 27 2016, at 10:03 pm, Miller Medeiros <notifications@github.com> wrote:

v0.9.2 includes this fix! thanks for the bug report!


Reply to this email directly or view it on GitHub.