Top "Babeljs" questions

Babel (formerly 6to5) is a JavaScript compiler.

ERROR in Cannot find module 'babel-core'. using react.js, webpack, and express server

Whenever I run webpack in the terminal I get: Hash: efea76b1048c3a97b963 Version: webpack 1.12.13 Time: 33ms + 1 hidden …

javascript express reactjs webpack babeljs
Is there a way to render multiple React components in the React.render() function?

For example could I do: import React from 'react'; import PanelA from './panelA.jsx'; import PanelB from './panelB.…

javascript reactjs browserify babeljs
SyntaxError: 'import' and 'export' may appear only with 'sourceType: module' - Gulp

Consider the following two files: app.js import Game from './game/game'; import React from 'react'; import ReactDOM from …

javascript gulp ecmascript-6 browserify babeljs
Preset files are not allowed to export objects

I have a carousel file in which I want to get index.js and build block.build.js, so my …

reactjs webpack babeljs
Exporting a class with ES6 (Babel)

I'm writing some frontend code with ECMAScript 6 (transpiled with BabelJS, and then browserified with Browserify) so that I can have …

javascript gruntjs browserify ecmascript-6 babeljs
ES6 `fetch is undefined`

I'm building a site with ES6 and Babel. In a script file, I need to make an ajax call to …

javascript ecmascript-6 babeljs
Error using async/await in React Native

When trying to use async/await in react-native, I am getting the following error: uncaught error Error: SyntaxError: /Users/senthilsivanath/…

javascript react-native babeljs ecmascript-next
Cannot find module '@babel/core'

I am following along with this webpack4/react tutorial: https://www.youtube.com/watch?v=deyxI-6C2u4 I have …

node.js reactjs npm webpack babeljs
Babel unexpected token import when running mocha tests

The solutions offered in other related questions, such as including the proper presets (es2015) in .babelrc, are already implemented in …

node.js npm syntax-error mocha babeljs
Babel 6 changes how it exports default

Before, babel would add the line module.exports = exports["default"]. It no longer does this. What this means is before …

ecmascript-6 commonjs babeljs