Closed yadomi closed 1 year ago
try it in version 1.4.9. I rewrite the options to be true by default. In previous versions, you should enable jsx options like
const Parser = acorn.Parser.extend(tsPlugin({
jsx: {
allowNamespaces: true
}
}))
thanks for the reply,
however I have the same issue with acorn-typescript@1.4.9
(with or without jsx.allowNamespaces to true
) with the snippet above.
I'm using acorn@8.10.0
(latest)
Yeah, my bad. This has been fixed in acorn-typescript@1.4.10. Its a bug of left relational and right relational. Also I have added your case in UT.
To reproduce:
This throw this error:
Update:
However, this works: