Skip to content

Doesn't work with Parcel? #18

@raxod502

Description

@raxod502

I installed version 0.0.4 of react-screen-orientation using Yarn. This caused my app to no longer compile, with the following build error:

$ /home/docker/src/node_modules/.bin/parcel watch --hmr-port 8081 static/admin.html static/index.html
🚨  /home/docker/src/node_modules/react-screen-orientation/src/index.js:8:6: Unexpected token (8:6)
   6 |     const { orientation, children, className } = this.props
   7 |     return (
>  8 |       <div className={`${className} react-orientation react-orientation--${orientation}`}>
     |      ^
   9 |         {children}
  10 |       </div>
  11 |     )

It seems like the package was published to the registry without being compiled?

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