Skip to content

Error in definition gulpfile.js in italian edition book #145

Description

@codabat

It seems to me that in the Italian version, there is an error in the definition of the gulpfile.js file.

The line:
var babelify = Require ('react')
it should be me i think:
var reatify = request ('react')

I apologize, but babelfy when it comes into action and for what purpose?
I, too, June 2020 when I launch gulp and observe the known rendering that does not add (for example) data-reagid = ". 0" to my HTML elements. Why this?

Below the code reported in the book.

var gulp = require('gulp');
var browserify = require('browserify');
var babelify = require('reactify');
var source = require('vinyl-source-stream');

gulp.task('default', function () {
return browserify('./source/app.js')
.transform(reactify)
.bundle()
.pipe(source('snapterest.js'))
.pipe(gulp.dest('./build/'));
});

Thank you so much

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions