.babelrc is never created automatically. You must go to the root directory of your project. Create a file - tap .babelrc, open the file and enter the Babel settings here, and then save. If you follow https://babeljs.io/blog/2015/10/31/setting-up-babel-6 , configure Babel 6 and install all the plugins and presets as indicated, this may help.
{ "presets": [ "es2015", "env", "react", "stage-2" ] }, { "plugins": [ "transform-es2015-arrow-functions", "check-es2015-constants", "transform-es2015-block-scoping" ] }
source share