Closed kewp closed 1 year ago
Doc might be out of date, adding an empty options
object as the 2nd argument fixed the issue for me:
acorn.Parser.extend(jsx()).parse("my(<jsx/>, 'code');", {});
Sounds like a bug upstream in acorn itself (considering that the error is coming from there).
Not sure what I'm doing wrong.
I just put the first example into a file:
then when i run it
i get the error
do i have to put in options?
using node 16.15.0