ast-types icon indicating copy to clipboard operation
ast-types copied to clipboard

Report line and column number with errors.

Open bolinfest opened this issue 10 years ago • 1 comments

I am trying to use regenerator with jstransform and I am getting the following error when transpiling one of my files:

Message:
    regenerator error while transforming <filename>:
did not recognize object of type "ObjectTypeAnnotation"

Lack of line information makes this hard to debug.

Also, I'm trying to use jstransform with harmony and stripTypes enabled. This does not seem to play so well with regenerator.

bolinfest avatar Nov 10 '14 18:11 bolinfest

Seems like you had Flow type nodes which are not recognized by regenerator, hence the error occurs. Anyway, this issue is so old that it should probably be closed 😈

bnjmnt4n avatar Feb 06 '19 11:02 bnjmnt4n