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?
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:
It seems like the package was published to the registry without being compiled?