Issue 1:
EDIT by @hzoo: make sure babel-core is >= 6.26.0, and in general keep the babel deps the same version

Transform Generator Plugin Fails

Input Code

I grab the lastest version of babel:

....

babel-plugin-transform-object-rest-spread@6.26.0 node_modules/babel-plugin-transform-object-rest-spread

├── babel-plugin-syntax-object-rest-spread@6.13.0

└── babel-runtime@6.26.0 (regenerator-runtime@0.11.0, core-js@2.5.0)

babel-preset-es2015@6.6.0 node_modules/babel-preset-es2015

├── babel-plugin-transform-es2015-block-scoped-functions@6.22.0 (babel-runtime@6.26.0)

├── babel-plugin-transform-es2015-arrow-functions@6.22.0 (babel-runtime@6.26.0)

├── babel-plugin-transform-es2015-typeof-symbol@6.23.0 (babel-runtime@6.26.0)

├── babel-plugin-check-es2015-constants@6.22.0 (babel-runtime@6.26.0)

├── babel-plugin-transform-es2015-literals@6.22.0 (babel-runtime@6.26.0)

├── babel-plugin-transform-es2015-spread@6.22.0 (babel-runtime@6.26.0)

├── babel-plugin-transform-es2015-template-literals@6.22.0 (babel-runtime@6.26.0)

├── babel-plugin-transform-es2015-function-name@6.24.1 (babel-types@6.26.0, babel-helper-function-name@6.24.1, babel-runtime@6.26.0)

├── babel-plugin-transform-es2015-unicode-regex@6.24.1 (regexpu-core@2.0.0, babel-helper-regex@6.26.0, babel-runtime@6.26.0)

├── babel-plugin-transform-es2015-duplicate-keys@6.24.1 (babel-types@6.26.0, babel-runtime@6.26.0)

├── babel-plugin-transform-es2015-object-super@6.24.1 (babel-helper-replace-supers@6.24.1, babel-runtime@6.26.0)

├── babel-plugin-transform-es2015-for-of@6.23.0 (babel-runtime@6.26.0)

├── babel-plugin-transform-es2015-sticky-regex@6.24.1 (babel-helper-regex@6.26.0, babel-types@6.26.0, babel-runtime@6.26.0)

├── babel-plugin-transform-es2015-shorthand-properties@6.24.1 (babel-types@6.26.0, babel-runtime@6.26.0)

├── babel-plugin-transform-es2015-computed-properties@6.24.1 (babel-template@6.26.0, babel-runtime@6.26.0)

├── babel-plugin-transform-es2015-destructuring@6.23.0 (babel-runtime@6.26.0)

├── babel-plugin-transform-es2015-parameters@6.24.1 (babel-helper-get-function-arity@6.24.1, babel-helper-call-delegate@6.24.1, babel-types@6.26.0, babel-template@6.26.0, babel-traverse@6.26.0, babel-runtime@6.26.0)

├── babel-plugin-transform-es2015-modules-commonjs@6.26.0 (babel-plugin-transform-strict-mode@6.24.1, babel-types@6.26.0, babel-template@6.26.0, babel-runtime@6.26.0)

├── babel-plugin-transform-es2015-block-scoping@6.26.0 (babel-types@6.26.0, babel-template@6.26.0, babel-traverse@6.26.0, babel-runtime@6.26.0)

├── babel-plugin-transform-es2015-classes@6.24.1 (babel-helper-optimise-call-expression@6.24.1, babel-messages@6.23.0, babel-helper-replace-supers@6.24.1, babel-helper-define-map@6.26.0, babel-helper-function-name@6.24.1, babel-types@6.26.0, babel-template@6.26.0, babel-traverse@6.26.0, babel-runtime@6.26.0)

└── babel-plugin-transform-regenerator@6.26.0 (regenerator-transform@0.10.0)

babel-core@6.7.7 node_modules/babel-core

├── slash@1.0.0

├── shebang-regex@1.0.0

├── path-exists@1.0.0

├── path-is-absolute@1.0.1

├── private@0.1.7

├── convert-source-map@1.5.0

├── babel-code-frame@6.26.0 (js-tokens@3.0.2, esutils@2.0.2)

├── debug@2.6.8 (ms@2.0.0)

├── minimatch@2.0.10 (brace-expansion@1.1.8)

├── babylon@6.18.0

├── json5@0.4.0

├── source-map@0.5.6

├── lodash@3.10.1

├── babel-runtime@5.8.38 (core-js@1.2.7)

├── babel-register@6.26.0 (home-or-tmp@2.0.0, source-map-support@0.4.15, mkdirp@0.5.1, babel-core@6.26.0, babel-runtime@6.26.0, lodash@4.17.4, core-js@2.5.0)

├── babel-messages@6.23.0 (babel-runtime@6.26.0)

├── babel-template@6.26.0 (lodash@4.17.4, babel-runtime@6.26.0)

├── babel-helpers@6.24.1 (babel-runtime@6.26.0)

├── babel-generator@6.26.0 (trim-right@1.0.1, jsesc@1.3.0, detect-indent@4.0.0, lodash@4.17.4, babel-runtime@6.26.0)

├── babel-types@6.26.0 (to-fast-properties@1.0.3, esutils@2.0.2, lodash@4.17.4, babel-runtime@6.26.0)

└── babel-traverse@6.26.0 (globals@9.18.0, invariant@2.2.2, lodash@4.17.4, babel-runtime@6.26.0)

When i try and transpile my code:

Module build failed: Error: Plugin 20 specified in "/my app folder/node_modules/babel-preset-es2015/index.js" provided an invalid property of "name"

at Plugin.init (/my app folder/node_modules/babel-core/lib/transformation/plugin.js:115:13)

at Function.normalisePlugin (/my app folder/node_modules/babel-core/lib/transformation/file/options/option-manager.js:149:12)

at /my app folder/node_modules/babel-core/lib/transformation/file/options/option-manager.js:183:30

at Array.map (native)

at Function.normalisePlugins (/my app folder/node_modules/babel-core/lib/transformation/file/options/option-manager.js:155:20)

at OptionManager.mergeOptions (/my app folder/node_modules/babel-core/lib/transformation/file/options/option-manager.js:277:36)

at /my app folder/node_modules/babel-core/lib/transformation/file/options/option-manager.js:349:14

at /my app folder/node_modules/babel-core/lib/transformation/file/options/option-manager.js:369:24

at Array.map (native)

at OptionManager.resolvePresets (/my app folder/node_modules/babel-core/lib/transformation/file/options/option-manager.js:364:20)

at OptionManager.mergePresets (/my app folder/node_modules/babel-core/lib/transformation/file/options/option-manager.js:348:10)

at OptionManager.mergeOptions (/my app folder/node_modules/babel-core/lib/transformation/file/options/option-manager.js:307:14)

at OptionManager.init (/my app folder/node_modules/babel-core/lib/transformation/file/options/option-manager.js:465:10)

at File.initOptions (/my app folder/node_modules/babel-core/lib/transformation/file/index.js:194:75)

at new File (/my app folder/node_modules/babel-core/lib/transformation/file/index.js:123:22)

at Pipeline.transform (/my app folder/node_modules/babel-core/lib/transformation/pipeline.js:45:16)

I assume that plugin 20 is:

babel-plugin-transform-regenerator@6.26.0 (regenerator-transform@0.10.0)

Babel Configuration (.babelrc, package.json, cli command)

"babel-core": "~6.7.4",
"babel-loader": "~6.2.4",
"babel-plugin-resolver": "^1.0.0",
"babel-plugin-transform-object-rest-spread": "^6.8.0",
"babel-preset-es2015": "~6.6.0",

Expected Behavior

It shouldn't barf

Current Behavior

Barfs

Context

Can't build

Your Environment

Nothing special. I have a build server where I am getting the latest version of all my dependencies during each run.

software
version(s)

Babel
babel-core@6.7.7

node
v0.10.46

npm
2.12.0

Operating System
linux

Issue 2:
v7 Regression

Describe the regression

When I want to upgrade my project to use Babel V7 with suggest way, my project can't upgrade successfully with some error code.

my Babel Configuration :

{
"presets": [
["@babel/preset-env", {
"modules": false,
"targets": {
"browsers": ["> 1%", "last 2 versions", "not ie <= 8"]
},
"useBuiltIns": "usage",
"corejs": 3,
}],
"@babel/preset-react"
],
"plugins": [
"@babel/plugin-transform-runtime",
["@babel/plugin-proposal-decorators", { "legacy": true }],
["@babel/plugin-proposal-class-properties", { "loose" : true }],
"@babel/plugin-proposal-object-rest-spread",
"@babel/plugin-syntax-dynamic-import",
"react-hot-loader/babel"
]
}

package.json:

"devDependencies": {
"@babel/core": "^7.4.5",
"@babel/plugin-proposal-class-properties": "^7.4.4",
"@babel/plugin-proposal-decorators": "^7.4.4",
"@babel/plugin-proposal-object-rest-spread": "^7.0.0",
"@babel/plugin-syntax-dynamic-import": "^7.0.0",
"@babel/plugin-transform-runtime": "^7.0.0",
"@babel/preset-env": "^7.4.5",
"@babel/preset-react": "^7.0.0",
"autoprefixer": "^8.6.1",
"babel-eslint": "^9.0.0",
"babel-loader": "^8.0.6",
"babel-plugin-module-resolver": "^3.1.1",
"core-js": "^3.1.3",
"css-loader": "^2.1.1",
"html-webpack-plugin": "^3.2.0",
"less": "^3.0.4",
"less-loader": "^4.1.0",
"mini-css-extract-plugin": "^0.4.2",
"node-sass": "^4.9.0",
"optimize-css-assets-webpack-plugin": "^5.0.1",
"postcss-loader": "^2.1.5",
"react-hot-loader": "^4.3.12",
"react-loadable": "^5.5.0",
"style-loader": "^0.21.0",
"uglifyjs-webpack-plugin": "^1.2.5",
"webpack": "^4.18.0",
"webpack-cli": "^3.0.2",
"webpack-dev-middleware": "^3.3.0",
"webpack-dev-server": "^3.1.14",
"webpack-merge": "^4.1.2"
},
"dependencies": {
"@babel/polyfill": "^7.4.4",
"@babel/runtime": "^7.0.0",
"@material-ui/core": "^3.9.1",
"@material-ui/icons": "^3.0.1",
"antd": "^3.19.1",
"browserslist": "^4.4.2",
"classnames": "^2.2.6",
"detect-browser": "^4.1.0",
"lodash": "^4.17.10",
"moment": "^2.22.2",
"normalize.css": "^8.0.0",
"prop-types": "^15.6.2",
"react": "^16.5.0",
"react-dom": "^16.5.0",
"react-redux": "^5.0.7",
"react-router-dom": "^4.3.1",
"redux": "^4.0.0",
"styled-components": "^3.4.6"
}
}

Because I want to use the useBuiltIns feature, so I fallowed the terminal console suggestion to install the core-js@3

WARNING: We noticed you're using the `useBuiltIns` option without declaring a core-js version. Currently, we assume version 2.x when no version is passed. Since this default version will likely change in future versions of Babel, we recommend explicitly setting the core-js version you are using via the `corejs` option.

You should also be sure that the version you pass to the `corejs` option matches the version specified in your `package.json`'s `dependencies` section. If it doesn't, you need to run one of the following commands:

npm install --save core-js@2 npm install --save core-js@3
yarn add core-js@2 yarn add core-js@3

error code:

ERROR in ./node_modules/babel-runtime/core-js/array/from.js
Module not found: Error: Can't resolve 'core-js/library/fn/array/from' in '/Users/neinei/project/wistron/T1-project/wiBioWeb/node_modules/babel-runtime/core-js/array'
@ ./node_modules/babel-runtime/core-js/array/from.js 1:30-70
@ ./node_modules/babel-runtime/helpers/toConsumableArray.js
@ ./node_modules/rc-slider/es/Range.js
@ ./node_modules/antd/es/slider/index.js
@ ./node_modules/antd/es/index.js
@ ./src/containers/Admin/AdminHome/AdminHome.js
@ ./src/containers/Main/Main.js
@ ./src/App.js
@ ./src/index.js

ERROR in ./node_modules/babel-runtime/core-js/object/assign.js
Module not found: Error: Can't resolve 'core-js/library/fn/object/assign' in '/Users/neinei/project/wistron/T1-project/wiBioWeb/node_modules/babel-runtime/core-js/object'
@ ./node_modules/babel-runtime/core-js/object/assign.js 1:30-73
@ ./node_modules/babel-runtime/helpers/extends.js
@ ./node_modules/omit.js/es/index.js
@ ./node_modules/antd/es/affix/index.js
@ ./node_modules/antd/es/index.js
@ ./src/containers/Admin/AdminHome/AdminHome.js
@ ./src/containers/Main/Main.js
@ ./src/App.js
@ ./src/index.js

ERROR in ./node_modules/babel-runtime/core-js/object/create.js
Module not found: Error: Can't resolve 'core-js/library/fn/object/create' in '/Users/neinei/project/wistron/T1-project/wiBioWeb/node_modules/babel-runtime/core-js/object'
@ ./node_modules/babel-runtime/core-js/object/create.js 1:30-73
@ ./node_modules/babel-runtime/helpers/inherits.js
@ ./node_modules/rc-tooltip/es/Tooltip.js
@ ./node_modules/rc-tooltip/es/index.js
@ ./node_modules/antd/es/tooltip/index.js
@ ./node_modules/antd/es/index.js
@ ./src/containers/Admin/AdminHome/AdminHome.js
@ ./src/containers/Main/Main.js
@ ./src/App.js
@ ./src/index.js

ERROR in ./node_modules/babel-runtime/core-js/object/define-property.js
Module not found: Error: Can't resolve 'core-js/library/fn/object/define-property' in '/Users/neinei/project/wistron/T1-project/wiBioWeb/node_modules/babel-runtime/core-js/object'
@ ./node_modules/babel-runtime/core-js/object/define-property.js 1:30-82
@ ./node_modules/babel-runtime/helpers/defineProperty.js
@ ./node_modules/rc-animate/es/Animate.js
@ ./node_modules/antd/es/upload/UploadList.js
@ ./node_modules/antd/es/upload/Upload.js
@ ./node_modules/antd/es/upload/index.js
@ ./node_modules/antd/es/index.js
@ ./src/containers/Admin/AdminHome/AdminHome.js
@ ./src/containers/Main/Main.js
@ ./src/App.js
@ ./src/index.js

ERROR in ./node_modules/babel-runtime/core-js/object/get-own-property-descriptor.js
Module not found: Error: Can't resolve 'core-js/library/fn/object/get-own-property-descriptor' in '/Users/neinei/project/wistron/T1-project/wiBioWeb/node_modules/babel-runtime/core-js/object'
@ ./node_modules/babel-runtime/core-js/object/get-own-property-descriptor.js 1:30-94
@ ./node_modules/babel-runtime/helpers/get.js
@ ./node_modules/rc-slider/es/common/createSlider.js
@ ./node_modules/rc-slider/es/Range.js
@ ./node_modules/antd/es/slider/index.js
@ ./node_modules/antd/es/index.js
@ ./src/containers/Admin/AdminHome/AdminHome.js
@ ./src/containers/Main/Main.js
@ ./src/App.js
@ ./src/index.js

ERROR in ./node_modules/babel-runtime/core-js/object/get-prototype-of.js
Module not found: Error: Can't resolve 'core-js/library/fn/object/get-prototype-of' in '/Users/neinei/project/wistron/T1-project/wiBioWeb/node_modules/babel-runtime/core-js/object'
@ ./node_modules/babel-runtime/core-js/object/get-prototype-of.js 1:30-83
@ ./node_modules/babel-runtime/helpers/get.js
@ ./node_modules/rc-slider/es/common/createSlider.js
@ ./node_modules/rc-slider/es/Range.js
@ ./node_modules/antd/es/slider/index.js
@ ./node_modules/antd/es/index.js
@ ./src/containers/Admin/AdminHome/AdminHome.js
@ ./src/containers/Main/Main.js
@ ./src/App.js
@ ./src/index.js

ERROR in ./node_modules/babel-runtime/core-js/object/set-prototype-of.js
Module not found: Error: Can't resolve 'core-js/library/fn/object/set-prototype-of' in '/Users/neinei/project/wistron/T1-project/wiBioWeb/node_modules/babel-runtime/core-js/object'
@ ./node_modules/babel-runtime/core-js/object/set-prototype-of.js 1:30-83
@ ./node_modules/babel-runtime/helpers/inherits.js
@ ./node_modules/rc-tooltip/es/Tooltip.js
@ ./node_modules/rc-tooltip/es/index.js
@ ./node_modules/antd/es/tooltip/index.js
@ ./node_modules/antd/es/index.js
@ ./src/containers/Admin/AdminHome/AdminHome.js
@ ./src/containers/Main/Main.js
@ ./src/App.js
@ ./src/index.js

ERROR in ./node_modules/babel-runtime/core-js/symbol.js
Module not found: Error: Can't resolve 'core-js/library/fn/symbol' in '/Users/neinei/project/wistron/T1-project/wiBioWeb/node_modules/babel-runtime/core-js'
@ ./node_modules/babel-runtime/core-js/symbol.js 1:30-66
@ ./node_modules/babel-runtime/helpers/typeof.js
@ ./node_modules/babel-runtime/helpers/inherits.js
@ ./node_modules/rc-tooltip/es/Tooltip.js
@ ./node_modules/rc-tooltip/es/index.js
@ ./node_modules/antd/es/tooltip/index.js
@ ./node_modules/antd/es/index.js
@ ./src/containers/Admin/AdminHome/AdminHome.js
@ ./src/containers/Main/Main.js
@ ./src/App.js
@ ./src/index.js

ERROR in ./node_modules/babel-runtime/core-js/symbol/iterator.js
Module not found: Error: Can't resolve 'core-js/library/fn/symbol/iterator' in '/Users/neinei/project/wistron/T1-project/wiBioWeb/node_modules/babel-runtime/core-js/symbol'
@ ./node_modules/babel-runtime/core-js/symbol/iterator.js 1:30-75
@ ./node_modules/babel-runtime/helpers/typeof.js
@ ./node_modules/babel-runtime/helpers/inherits.js
@ ./node_modules/rc-tooltip/es/Tooltip.js
@ ./node_modules/rc-tooltip/es/index.js
@ ./node_modules/antd/es/tooltip/index.js
@ ./node_modules/antd/es/index.js
@ ./src/containers/Admin/AdminHome/AdminHome.js
@ ./src/containers/Main/Main.js
@ ./src/App.js
@ ./src/index.js
Child html-webpack-plugin for "index.html":
1 asset
Entrypoint undefined = index.html
[LvDl] ./node_modules/lodash/lodash.js 527 KiB {0} [built]
[MFLM] ./node_modules/html-webpack-plugin/lib/loader.js!./src/index.html 939 bytes {0} [built]
[YuTi] (webpack)/buildin/module.js 497 bytes {0} [built]
[yLpj] (webpack)/buildin/global.js 472 bytes {0} [built]
ℹ ｢wdm｣: Failed to compile.

find other node_modules - antd use babel-runtime v6.x that use core-js v2

antd package.json

babel-runtime v6.X package.json

Maybe the error is the antd's babel-runtime v6.x (use core-js V2) and babel 7 useBuiltIns I choose core-js 3 caused.

So I installed core-js@2 into my project, then fixed this error. Compiled successfully.

I'm just speculating for that you cannot use useBuiltIns with core-js v3 when project used node_modules does't upgrade their babel to v7 OR You have to check all of used node_modules don't use any core-js v2 when you want to installed core-js v3 in your project

Environment

Babel version(s): v7.4.5

Node/npm version: Node v10.13.0 / npm v6.4.1

OS: Mojave 10.14

Monorepo no

How you are using Babel: loader

PS. I have create a new repo to duplicate this issue.