react-share-button icon indicating copy to clipboard operation
react-share-button copied to clipboard

You may need an appropriate loader to handle this file type

Open ricardomatias opened this issue 6 years ago • 0 comments

I'm using babel-preset-env and taking a look at your code, I'm using the same features throughout my code base.. but somehow I still get this. Any ideas?

./node_modules/react-share-button/components/ShareBtn.js
Module parse failed: Unexpected token (62:6)
You may need an appropriate loader to handle this file type.
|     const gmailURL = `https://mail.google.com/mail/u/0/?view=cm&ui=2&tf=0&fs=1&su=${this.props.text}&body=Check out this awesome property %0A${this.props.url}`
|     return (
|       <div className='share-popup'>
|         {this.props.shareModalOpen && <Visibility ref={(node) => { this.visibility = node }} />}
|         <a className='sp-tab' href={`whatsapp://send?text=${text}`} onClick={this.whatsappClicked}>
 @ ./node_modules/react-share-button/components/index.js 1:0-33

ricardomatias avatar Feb 28 '18 12:02 ricardomatias