Questions tagged [gulp-babel]

For questions related to the gulp-babel NPM package

gulp-babel allows using ES.next features in gulpfile.js via the babel transpiler.

See also (JavaScript build system) and (rewrites bleeding edge JavaScript features to run on EcmaScript 5 interpreters like V8).

55 questions
0
votes
1 answer

npm/gulp-babel: target works everywhere BUT on my machine, what's wrong?

This is driving me crazy. I am in charge of the development and need to do merging of branches, but exactly on my machine only something is not working. I have several times removed node_modules and run npm install, and even completely cloned the…
transient_loop
  • 5,984
  • 15
  • 58
  • 117
0
votes
1 answer

Webpack is Not Playing Nice with gulp-babel

I'm building a gulp script to process my ES2015 code, eventually with react, but it's simply not working. Uglify was throwing errors. (stream.js:74 throw er; // Unhandled stream error in pipe.) Once I looked at the build it was obvious that the…
Gabriel Kunkel
  • 2,643
  • 5
  • 25
  • 47
0
votes
1 answer

gulp end callback not called

I'm having trouble setting up a simple task on gulp. I want to pass the files through gulp-babel to run a script, but the end callback is never called. I also tried finish. The only callback called is data, but it doesn't work for me because I need…
Marcio Cruz
  • 2,012
  • 1
  • 23
  • 30
0
votes
1 answer

babel and reactjs: how to use es2015 style imports

I'm new to javascript and javascript build scripts, and I'm trying to build a "future-proof" build script for building a ReactJS/Redux app. I'm having trouble with getting imports to work between javascript files. My question is what is the…
Joe J
  • 9,985
  • 16
  • 68
  • 100
0
votes
2 answers

Babel does not convert ES6 to JavaScript that is understandable by browsers

I use Gulp as task manager and Babel for convert my ES6 program to a version that is understandable for browsers, not for Node! const gulp = require('gulp'); const babel = require('gulp-babel'); gulp.task('default', () => …
theLisash
  • 11
  • 4
0
votes
0 answers

React JS icons not showing

I'm using react-icons pack (only available for React) from GoranGajic. If I import like import * as IO from 'react-icons/io I'm getting an error /Users/boris/WebstormProjects/autralis-sales-new/node_modules/react-icons/io/index.js:1 export…
Boky
  • 11,554
  • 28
  • 93
  • 163
0
votes
1 answer

Gulp Plumber or PrettyError does not work in a loop

I have a problem with gulp watch that breaking after error. Then i found a good reference to use plumber, and the extension of it, gulp-prettyerror. Then i create this gulpfile.js const gulp = require('gulp'), babel =…
Haqqi
  • 1,009
  • 10
  • 8
0
votes
1 answer

Using gulp with babelify + browserify cannot find module

I tried to use gulp to transform my javascript code in ecm6 to ecm5 and it was ok. gulp-babel added require inside the transformed code, and now I need to use this code in a browser and it's necessary browserify the code. When I run this command in…
Ismael Moral
  • 722
  • 1
  • 9
  • 35
0
votes
1 answer

Error when running gulp for transcompiling es6 to es5

I have a simple javascript file like this: 'use strict'; const sentences = [ {subject: 'Javascript', verb: 'is', object: 'great'} {subject: 'Elephants', verb: 'are', object: 'large'} ]; function say ({subject, verb, object}){ …
Joao Victor
  • 1,111
  • 4
  • 19
  • 39
0
votes
1 answer

Gulp Module to read file content and use it in pipe

Usecase (abstract): I have several files in which a certain value to be read. This value I want to use in the same pipeline again to read out a file and inject it. Example HTML file source:
Sebastian
  • 1,109
  • 4
  • 17
  • 33
1 2 3
4