ast-types
ast-types copied to clipboard
Report line and column number with errors.
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.
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 😈