Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • C create-react-app
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 1,547
    • Issues 1,547
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 417
    • Merge requests 417
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Package Registry
    • Infrastructure Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • Meta
  • create-react-app
  • Issues
  • #4206
Closed
Open
Issue created Mar 23, 2018 by Administrator@rootContributor

react-scripts@2.0.0-next: babel-preset-env configuration issues

Created by: alexeyraspopov

Is this a bug report?

Yes

Did you try recovering your dependencies?

The issue appeared right after creating an app.

Environment

  1. node -v: 8.9.4
  2. npm -v: 5.6.0
  3. yarn -v: 1.3.2
  4. npm ls react-scripts (if you haven’t ejected): react-scripts@2.0.0-next.b2fd8db8

Then, specify:

  1. Operating system: macOS Sierra
  2. Browser and version (if relevant):

Steps to Reproduce

(Write your steps here:)

  1. yarn create react-app reproducing-app
  2. cd reproducing app && yarn add react-scripts@2.0.0-next.b2fd8db8
  3. Add async function* something() { } to index.js
  4. yarn start

Expected Behavior

The app starts, the code is compiled, async generators are transpiled using babel-preset-env

Actual Behavior

As reported in https://github.com/facebook/create-react-app/issues/3815#issuecomment-375399832:

Failed to compile.

./src/App.js
Syntax error: /Users/alexey/xxx/src/App.js: Support for the experimental syntax 'asyncGenerators' isn't currently enabled (25:15):

  23 |
  24 |
> 25 | async function* Act() {
     |               ^
  26 |
  27 | }
  28 |

Add @babel/plugin-proposal-async-generator-functions (https://git.io/vb4yp) to the 'plugins' section of your Babel config to enable transformation.
Assignee
Assign to
Time tracking