Skip to content

Issue with transpiled code in v2.14.0 vs v2.13.0 #174

@ryanthemanuel

Description

@ryanthemanuel

We ran into an issue when we upgraded to v2.14.0 today that was not existing in v2.13.0. Specifically this issue was hit when running our continuous integration night watch tests against PhantomJS. We are seeing a console error: 'SyntaxError: Unexpected token '['' that maps to this line of code: https://github.com/reactjs/react-docgen/blob/d65bfc460d7274206c3208fc41518727acd5a490/src/utils/getMemberValuePath.js#L25 It appears that PhantomJS is not set up to use the new syntax for declaring objects. I'm not sure what transpiling happened in v2.13.0 that is not happening in v2.14.0, but there is definitely something different between the two.

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