Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

acorn-loose with jsx plugin #135

Open
jasonhocker opened this issue Nov 14, 2022 · 0 comments
Open

acorn-loose with jsx plugin #135

jasonhocker opened this issue Nov 14, 2022 · 0 comments

Comments

@jasonhocker
Copy link

I am trying to switch from acorn to acorn-loose. When I add the jsx plugin I get an error.

const ast = acorn.LooseParser.extend(jsx()).parse(code, { ecmaVersion: "latest", sourceType: "module" });

TypeError: this.curContext is not a function
at LooseParser.readToken
at LooseParser.next
at LooseParser.parse
at Function.parse

Is this an issue with the jsx plugin or acorn-loose? Or do I need to do more to enable these to work together?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant