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

Es6 Calling Super() Doesn't Properly Initialize Parent Class

I have the following code structure, I try to initialize parent class by calling super(), but when … Read more Es6 Calling Super() Doesn't Properly Initialize Parent Class

Unable To Expose A Component Library In React With Webpack And Babel

I'm creating a small component library for react. Something that can be required like var Compo… Read more Unable To Expose A Component Library In React With Webpack And Babel

React Native: Can't Find Variable: Require

I am trying to modify a react native boilerplate so that I can be run on Android platform. I instal… Read more React Native: Can't Find Variable: Require

Can't Get Browserify To Use Babel-plugin-transform-class-properties

I'm trying to use MobX in my project and I am attempting to use class properties. However, when… Read more Can't Get Browserify To Use Babel-plugin-transform-class-properties

Gulp Throwing "is Read-only While Parsing File" Error While Running Gulp Task

I'm trying to create ES6 module in JavaScript and I get error like: Line 20: 'NotFound'… Read more Gulp Throwing "is Read-only While Parsing File" Error While Running Gulp Task

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

Reactjs With Fetch On Older Browsers

I am implementing React JS, with Webpack and Babel. However, I am having trouble getting Fetch to w… Read more Reactjs With Fetch On Older Browsers

Exporting A Default & Declaring Anon Function All In One

Here's an example of something I want to do and currently throws an error. I'm not sure I u… Read more Exporting A Default & Declaring Anon Function All In One

Webpack Breaking In Ie11

It's difficult to track this down, so thanks for bearing with me. Some users were complaining t… Read more Webpack Breaking In Ie11

Grunt Babel Taking 6 Seconds Per File

I'm trying to use Babel in my grunt build process to transpile my .js project files from ES6 to… Read more Grunt Babel Taking 6 Seconds Per File

Passing Id With Onclick Function React

I am having problem with passing id to handleClick function and console.log'ing it into the con… Read more Passing Id With Onclick Function React

How To Inject Angular2 Http Service Into Es6/7 Class?

If I use es6/7 (babel - stage 1) instead of TypeScript, how are services, and specifically Http, in… Read more How To Inject Angular2 Http Service Into Es6/7 Class?

Using Gulp-babel And Getting "argument Name Clash In Strict Mode"

I'm trying to use gulp-babel so I can start writing some ES6 / ES2015 code inside of my ES5 app… Read more Using Gulp-babel And Getting "argument Name Clash In Strict Mode"

Use Babel Transform Inside Of React Code

I'm trying to convert a string to valid JSX code, and then inject it into my React component. c… Read more Use Babel Transform Inside Of React Code

Only One Instance Of Babel-polyfill Is Allowed

I am getting the following error Uncaught Error: only one instance of babel-polyfill is allowed … Read more Only One Instance Of Babel-polyfill Is Allowed

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

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

React Native Jest Syntaxerror: Duplicate __self Prop Found

Still haven't gotten a successful run of this to pass with a fairly boilerplate Expo app built … Read more React Native Jest Syntaxerror: Duplicate __self Prop Found

'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

Es6 Class Extends Array: Workaround For Es5 Babel Transpile

I have some ES6 class inherited from Array: class Cache extends Array { add(item) { if(!item.… Read more Es6 Class Extends Array: Workaround For Es5 Babel Transpile