casesandberg / react-reactions

:raised_hands: Use Reactions from Slack, Facebook, Pokemon, Github and Youtube
http://casesandberg.github.io/react-reactions/
614 stars 47 forks source link

React app unable to compile #11

Open locksem opened 3 years ago

locksem commented 3 years ago

After installing via 'yarn add react-reactions', and attempting to include the SlackSelector. React app can no longer compile

./node_modules/react-reactions/src/index.js SyntaxError: ...../node_modules/react-reactions/src/index.js: Support for the experimental syntax 'exportDefaultFrom' isn't >currently enabled (3:8):

1 | export default 'Reactions' 2 | 3 | export FacebookSelector from './components/facebook/FacebookSelector' 4 | export GithubSelector from './components/github/GithubSelector' 5 | export PokemonSelector from './components/pokemon/PokemonSelector' 6 | export SlackSelector from './components/slack/SlackSelector'

Add @babel/plugin-proposal-export-default-from (https://git.io/vb4yH) to the 'plugins' section of your Babel config to enable transformation. If you want to leave it as-is, add @babel/plugin-syntax-export-default-from (https://git.io/vb4SO) to the 'plugins' section to enable parsing.

Are there other dependencies / installation steps besides what's documented? Any help appreciated

jerinjacob1999 commented 3 years ago

@locksem I think this repo is not maintained You can try this npm i @charkour/react-reactions