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

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?

'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

Does Webpack Make Es6 Modules Compatible With Es5 Browsers?

If I use an ES6 import in a JS file like: import { tempates } from './templates.js'; webpa… Read more Does Webpack Make Es6 Modules Compatible With Es5 Browsers?

Can I Run A Gulp Task Written In Es6 Using Node?

I'm using ES6 on Node through Babel. I can run ES6 scripts using a run-babel script. So, this w… Read more Can I Run A Gulp Task Written In Es6 Using Node?

(this) Is Recognised On React Js Callback

class App extends Component { constructor(props){ super(props); this.state … Read more (this) Is Recognised On React Js Callback

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

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

Babel-preset-env Not Transpiling Arrow Functions Using Webpack

I'm using babel with webpack, I'm trying to make arrow functions work with Internet Explore… Read more Babel-preset-env Not Transpiling Arrow Functions Using Webpack

Making Export Default Work With Babel, Webpack And Node.js

I can't figure out why my code doesn't work. I am building a ES6 style class and want to e… Read more Making Export Default Work With Babel, Webpack And Node.js

Babel - Decorator Of Decorated Class Properties Is Called Before Instantiating Class

Excuse me for creating a new question, I was not able to find a question addressing this matter. I… Read more Babel - Decorator Of Decorated Class Properties Is Called Before Instantiating Class

Using Babel To Convert Es6 Modules To Es5 Amd Modules, Not Working As Expected

I hope someone can help. I'm using grunt-babel to convert my ES6 module code to ES5 AMD module … Read more Using Babel To Convert Es6 Modules To Es5 Amd Modules, Not Working As Expected

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

Babel/requirejs + Typeof "rangeerror: Maximum Call Stack Size Exceeded"

I have a very basic JS error and I'm quite ashamed to not be able to solve it... I'm develo… Read more Babel/requirejs + Typeof "rangeerror: Maximum Call Stack Size Exceeded"

Uncaught Referenceerror: Regeneratorruntime Is Not Defined In React 17, Webpack 5 While Making Api Calls Through Actions

Having this error Uncaught ReferenceError: regeneratorRuntime is not defined when trying to make a … Read more Uncaught Referenceerror: Regeneratorruntime Is Not Defined In React 17, Webpack 5 While Making Api Calls Through Actions

Tracing Errors Using Karma + Babel + Webpack With Bundles

Using karma + babel + webpack to run ES6 unit tests. I use a webpack bundle to locate and transpile… Read more Tracing Errors Using Karma + Babel + Webpack With Bundles

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

Attempted Import Error: 'default' Is Not Exported From '../assertthisinitialized/_index.mjs'

Suddenly my react is application throwing this error ./node_modules/@babel/runtime/helpers/esm/asse… Read more Attempted Import Error: 'default' Is Not Exported From '../assertthisinitialized/_index.mjs'

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?

Webpack Imported Module Is Not A Constructor

I created a small JS module which I intend to make an npm package, but for now is just on GitHub. T… Read more Webpack Imported Module Is Not A Constructor

Referenceerror: You Are Trying To `import` A File After The Jest Environment Has Been Torn Down: At Loadcjsdefault

I am testing building a bundle with rollup using jest which throws error whenever i use async/await… Read more Referenceerror: You Are Trying To `import` A File After The Jest Environment Has Been Torn Down: At Loadcjsdefault