-
-
Notifications
You must be signed in to change notification settings - Fork 53
Open
Description
I tried to use babel-upgrade to upgrade my project from Babel 6 to Babel 7.
I've used the command:
babel-upgrade --write --install
This is how it affected my package.json dependencies:
- "babel-cli": "~6.26.0",
- "babel-core": "~6.26.0",
- "babel-eslint": "~8.0.3",
- "babel-loader": "^7.1.4",
- "babel-plugin-transform-object-rest-spread": "6.26.0",
- "babel-polyfill": "~6.26.0",
- "babel-preset-es2015": "^6.24.1",
- "babel-register": "^6.26.0",
+ "@babel/cli": "^7.0.0",
+ "@babel/core": "^7.0.0",
+ "@babel/plugin-proposal-object-rest-spread": "^7.0.0",
+ "@babel/polyfill": "^7.0.0",
+ "@babel/preset-env": "^7.0.0",
+ "@babel/register": "^7.0.0",
+ "babel-eslint": "^9.0.0",
+ "babel-loader": "^8.0.0",However my build is now broken and I get the following errors:
ERROR in ./src/app/index.js
Module build failed (from ./node_modules/babel-loader/lib/index.js):
ReferenceError: Unknown plugin "@babel/plugin-proposal-object-rest-spread" specified in "/path/to/myapp/.babelrc" at 0, attempted to resolve relative to "/path/to/myapp"
ERROR in ./src/app/index.js
Module build failed (from ./node_modules/babel-loader/lib/index.js):
Error: Cannot find module 'babel-preset-es2015' from '/path/to/myapp'
Metadata
Metadata
Assignees
Labels
No labels