Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
codabat opened this issue Jun 12, 2020 · 0 comments
Open

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

codabat opened this issue Jun 12, 2020 · 0 comments

Comments

@codabat
Copy link

codabat commented Jun 12, 2020

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant