Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Upgrade failed #113

Open
FrancescoBorzi opened this issue Jul 17, 2019 · 0 comments
Open

Upgrade failed #113

FrancescoBorzi opened this issue Jul 17, 2019 · 0 comments

Comments

@FrancescoBorzi
Copy link

FrancescoBorzi commented Jul 17, 2019

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'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant