Skip to content

acorn-loose with jsx pluginΒ #135

@jasonhocker

Description

@jasonhocker

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions