We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
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?
The text was updated successfully, but these errors were encountered:
No branches or pull requests
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" });
Is this an issue with the jsx plugin or acorn-loose? Or do I need to do more to enable these to work together?
The text was updated successfully, but these errors were encountered: