Skip to content

Cannot parse certain ES6+ syntaxes #65

@neutraali

Description

@neutraali

( Possibly related to js2flowchart )

When trying to parse certain ES6+ syntax, the AST parser throw an error:

Error at parseCodeToAST: This experimental syntax requires enabling the parser plugin: 'classProperties' (XX:YY)

An example of this code would be:

class ExampleComponent extends React.Component {
	constructor(props) {
		super(props)
	}
	// Error triggers on the line below
	state = {
		isLoading: false
	}
	// . . .
}

How does one enable classProperties over @ codecrumbs?

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