casesandberg / casesandberg/react-reactions
React app unable to compile
- Dominant language
- JavaScript
- Stars
- 631
- Forks
- 40
- PR merge metrics
- No merged PRs in 30d
Description
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
Contributor guide
No contributing guide indexed for this repository
Research direction
Start with the reported build error in node_modules/react-reactions/src/index.js and compare the documented installation steps with the Babel configuration used by the consuming React app. Check whether the documented setup covers the exportDefaultFrom syntax used by the package and verify the result by rebuilding an app that imports SlackSelector.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- babel, javascript, react
- Domain
- build-system, frontend
- Issue type
- Bug
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100