Skip to content

Metro4-React with Parcel #32

@mjbedford

Description

@mjbedford

Hi I am trying to use Parcel with Metro4-React and I get the following build error when I try and import any Metro4-React component

@parcel/transformer-js: Expected ',', got 'className'

/Users/[email protected]/projects/OP2/node_modules/metro4-react/src/components/accordion/accordion.jsx:21:18
20 | return (

21 | <div className={'frame ' + (open ? 'active' : '') + ' ' + clsFrame}>
| ^^^^^^^^^
22 | <div className={'heading ' + clsFrameHeading} onClick={this.onHeadingClick}>{title}
23 |

Is it possible to use Parcel with Metro4-React?
Is there any specific configuration I need to add to either Parcel or elswhere

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions