npm-module-boilerplate icon indicating copy to clipboard operation
npm-module-boilerplate copied to clipboard

Babel deprecated

Open PaulRBerg opened this issue 6 years ago • 2 comments

Running the build command, I get:

You have mistakenly installed the `babel` package, which is a no-op in Babel 6.
Babel's CLI commands have been moved from the `babel` package to the `babel-cli` package.

    npm uninstall babel
    npm install --save-dev babel-cli

Installing babel-cli and babel-preset-env solved the issue.

PaulRBerg avatar Jan 22 '19 15:01 PaulRBerg

@PaulRBerg Thanks for bringing this up. I'll find some time in the next few days to fix this. Feel free to create a PR if you must :)

flexdinesh avatar Jan 23 '19 02:01 flexdinesh

@PaulRBerg You can update your packages to newer versions of babel,

{
  "@babel/cli": "^7.4.4",
  "@babel/core": "^7.4.5",
  "@babel/plugin-proposal-class-properties": "^7.4.4",
  "@babel/polyfill": "^7.4.4",
  "@babel/preset-env": "^7.4.5",
  "babel-eslint": "^10.0.1",
  "babel-loader": "^8.0.6",
  "babel-preset-minify": "^0.5.0",
}

pratikgaloria avatar Jul 17 '19 09:07 pratikgaloria