Skip to content Skip to sidebar Skip to footer
Showing posts with the label Babeljs

'babelhelpers.asynctogenerator Is Not A Function' Error

Expected Behavior App to load as it does on android. Actual Behavior Error: babelHelpers.asyncToGen… Read more 'babelhelpers.asynctogenerator Is Not A Function' Error

Typescript 1.8 - Es2015 Imports In Js Files

I would like to start using Typescript on an Existing Babel project. My goal is to be able to add t… Read more Typescript 1.8 - Es2015 Imports In Js Files

Exporting Functions With Reactjs And Babel

I have a project using reactjs, which is transpiled by babel. I use the es2015 and react transforms… Read more Exporting Functions With Reactjs And Babel

Compiling Es6 Arrow Functions To Es5 Using Babel.js

While looking into ES6 arrow functions' documentation on Mozilla documentation, I got to know t… Read more Compiling Es6 Arrow Functions To Es5 Using Babel.js

Babeljs Doesn't Transpile Extended Classes Properly

I've got this example code from MDN (slightly modified to print out results): It works on Goog… Read more Babeljs Doesn't Transpile Extended Classes Properly

Is It Possible To Use Both "require" And "import" Together With Webpack?

We had to update some dependencies to switch to Webpack 4 and are getting a warning in webpack and … Read more Is It Possible To Use Both "require" And "import" Together With Webpack?

Gulp + Babelify + Browserify Issue

I'm trying to create a gulp task with browserify and babelify. Here is the task: var gulp = req… Read more Gulp + Babelify + Browserify Issue

How To Test Code Setup With Babel Configuration(for Library) Using Jasmine?

Good day to all, I am struggling from quite a few days and raised few questions here here and I hav… Read more How To Test Code Setup With Babel Configuration(for Library) Using Jasmine?

Why Does Babel 6 Some (unnecessary) Code Transformations

In this simple Babel (6.1.18) example babel --presets es2015 test.js transforms: 'use strict… Read more Why Does Babel 6 Some (unnecessary) Code Transformations

Webpack + Babel - React, Unexpected Token 'import'

I'm trying to make index.js work with es2015. Before directing me to .babelrc, note that I have… Read more Webpack + Babel - React, Unexpected Token 'import'

Is It Possible To Call A Super Setter In Es6 Inherited Classes?

I'm wondering if the following is in compliance with the ES6 spec: class X { constructor(name… Read more Is It Possible To Call A Super Setter In Es6 Inherited Classes?

Why Can't I Use Array.foreach On A Collection Of Javascript Elements?

I'm building an app with Babel/ES6. I want to disable all form elements for a view-only version… Read more Why Can't I Use Array.foreach On A Collection Of Javascript Elements?

What Does The "modules:auto" Means In @babel/preset-env Field?

the babel docs say the modules default option is auto, what does the auto means? does it transform … Read more What Does The "modules:auto" Means In @babel/preset-env Field?

Angular 2 With Babel Es2015 Not Loading And No Error

I'm trying to use angular 2 with babel, grunt, browserify and ES2015 sources. I'm trying a … Read more Angular 2 With Babel Es2015 Not Loading And No Error

Es6 - Using Babel/traceur With Jquery Plugins

I want to be able to write ES6 with jQuery plugins and compile the code down to ES5 using Gulp Babe… Read more Es6 - Using Babel/traceur With Jquery Plugins

Syntaxerror On Spread Operator, While Using Babel Env Preset

I am trying to 'modernize' mern.io starter bolerplate by replacing babel es2015 and stage-0… Read more Syntaxerror On Spread Operator, While Using Babel Env Preset

Render React Component From A String

I have some React code in the string, for example: const component = ` function App() { return ( … Read more Render React Component From A String

Adding React-hot-loader To Ejected Create-react-app

I am using the instructions from this commit to attempt to add react-hot-loader version 3 to create… Read more Adding React-hot-loader To Ejected Create-react-app

Shorten Es2015 Import Paths

I am working on a large ES2015 project that has a lot of import statements referring to a library i… Read more Shorten Es2015 Import Paths

[nodemon]- Babel-node Not Recognized As Internal Or External Command

I am trying to setup a simple express server. I am using nodemon to start my development server But… Read more [nodemon]- Babel-node Not Recognized As Internal Or External Command