Skip to content

You may need an appropriate loader to handle this file type #4

@ricardomatias

Description

@ricardomatias

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

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