Top "Babeljs" questions

Babel (formerly 6to5) is a JavaScript compiler.

babel CLI copy nonjs files

I'm running a babel cli command babel src --out-dir lib To copy the es6 scripts from src into lib. However, …

babeljs
TypeError: __webpack_require__.i(...) is not a function

I am getting a webpack TypeError when I am trying to simplify an import. The following code works without any …

reactjs webpack ecmascript-6 babeljs es6-module-loader
Couldn't find preset "env" relative to directory

So far I have been unsuccessful in an attempt to use the env preset. I browsed the git issues that …

npm babeljs babelify
Requires Babel "7.0.0-0" but was loaded with "6.26.3"

Keep getting this error no matter what I tried installing (babel wise) as I follow other similar reports. this is …

reactjs react-native babeljs
Babel - Error: Cannot find module 'babel-runtime/helpers/typeof'

Transpiling via gulp-babel for the server and browserify with babelify for the client - using async and await in my …

transform babeljs typeof
Module build failed: ReferenceError: [BABEL]

I have this configuration package.json { "name": "app02", "version": "1.0.0", "description": "", "main": "webpack.config.js", "dependencies": { "react": "^0.14.3" }, "devDependencies": { "babel-core": "^6.2.1", "babel-loader": "^6.2.0", "babel-preset-es2015": "^6.1.18" }, "…

reactjs npm webpack babeljs
ES6 getter/setter with arrow function

I'm using babel6 and for my pet project I'm creating a wrapper for XMLHttpRequest, for the methods I can use: …

ecmascript-6 babeljs
How to upgrade to babel 7

I tried to upgrade Webpack and babel to 4, 7 respectively but couldn’t make it work. Also the official doc isn’…

reactjs babeljs webpack-4 babel-loader
Unable to resolve path to module 'react'. (import/no-unresolved)

Seems like i am missing something here, it should work without errors but eslint keeps throwing the following: Unable to …

reactjs babeljs eslint eslint-config-airbnb
"Only one instance of babel-polyfill is allowed" error

I need help diagnosing and fixing this error: "Error: only one instance of babel-polyfill is allowed" I have the following …

reactjs webpack babeljs babel-polyfill