Skip to content

fails for an app that uses decorators #86

@jbailey4

Description

@jbailey4

For each module that contains a decorator (e.g. @computed) I get the following error:

error parsing file `[path/to/file]` failed to apply codeshift. Possible invalid JS file. Returning original file unchanged. error: This experimental syntax requires enabling one of the following parser plugin(s): 'decorators, decorators2' (48:2)

I traced the problem down to this issue -> facebook/jscodeshift#232

Seems like the parser passed to jscodeshift should be set to "babylon", which includes the decorators flag.

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