Skip to content

@babel/plugin-proposal-class-properties does not work with CRA 2.0 #4648

Closed
@jimbojetlag

Description

@jimbojetlag

Install [email protected] and use a package with classProperties, for example @material/react-top-app-bar, you will get this error:

...
 Support for the experimental syntax 'classProperties' isn't currently enabled
...
Add @babel/plugin-proposal-class-properties (https://git.io/vb4SL) to the 'plugins' section of your Babel config to enable transformation.

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