non-standard code breaks create-react-native-web-app
Closed this issue · 0 comments
paddy10tellys commented
this relates to this
Describe the bug
breaks the web version of create-react-native-web-app
./node_modules/react-native-ratings/src/SwipeRating.js
SyntaxError: /home/pmy/gitphone/node_modules/react-native-ratings/src/SwipeRating.js: Support for the experimental syntax 'classProperties' isn't currently enabled (41:23):39 |
40 | export default class SwipeRating extends Component {
> 41 | static defaultProps = {
| ^
42 | type: 'star',
43 | ratingImage: require('./images/star.png'),
44 | ratingColor: '#f1c40f',
Add @babel/plugin-proposal-class-properties (https://git.io/vb4SL) to the 'plugins' section of your Babel config to enable transformation.
Expected behaviour
web version of create-react-native-web-app not to break...
Additional context
"Don’t ship non-standard code to npm: it hurts the ecosystem!"