Skip to content

React app unable to compile #11

@locksem

Description

@locksem

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions