Skip to content

Error in babel-register 6.16.0 #4592

Description

@theverything

After updating to babel register 6.16.0 I started getting the following error.

/myproject/node_modules/babel-core/lib/transformation/file/options/option-manager.js:319
        throw e;
        ^
SyntaxError:  (While processing preset: "/myproject/node_modules/babel-preset-es2015/lib/index.js")

.babelrc

{
  "presets": [
    ["es2015", { "modules": false }],
    "stage-1",
    "react"
  ],
  "plugins": [
    "transform-runtime"
  ],
  "env": {
    "development": {
      "plugins": ["react-hot-loader/babel", "transform-runtime"]
    },
    "test": {
      "presets": ["es2015", "stage-1", "react"],
    }
  },
  "compact": true
}

package.json

{
  "dependencies": {
    ...
    "babel-core": "^6.3.26",
    "babel-loader": "^6.2.0",
    "babel-plugin-transform-runtime": "^6.12.0",
    "babel-polyfill": "^6.9.0",
    "babel-preset-es2015": "^6.13.0",
    "babel-preset-react": "^6.11.0",
    "babel-preset-stage-1": "^6.13.0",
    "babel-register": "^6.8.0",
    "babel-runtime": "^6.11.6",
    ...
  }
}

After resetting babel-register to 6.14.0 the error went away.

I'm thinking it might have something to do with this commit 71dff8c

software version
Babel 6.16.0
node 6.6.0
npm 3.10.3
Operating System OS X 10.11.6 (15G1004)

Metadata

Metadata

Assignees

No one assigned

    Labels

    outdatedA closed issue/PR that is archived due to age. Recommended to make a new issue

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions