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

Gulp doesn't work with reactify 1.1.1 #141

Open
marioglsub opened this issue Feb 23, 2019 · 0 comments
Open

Gulp doesn't work with reactify 1.1.1 #141

marioglsub opened this issue Feb 23, 2019 · 0 comments

Comments

@marioglsub
Copy link

Using the following gulpfile.js file in Chapter 1:

var gulp = require('gulp');
var browserify = require('browserify');
var reactify = 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/'));
});

and the dipendencies ...

"devDependencies": {
"browserify": "^16.2.3",
"gulp": "^4.0.0",
"reactify": "^1.1.1",
"vinyl-source-stream": "^2.0.0"
}

i get the error shown below:
Using gulpfile ~\source\repos\snapterest\gulpfile.js Starting 'default'... 'default' errored after 29 ms Error: Cannot find module 'C:\Users\mario\source\repos\snapterest\source\app.js' from 'C:\Users\mario\source\repos\snapterest' at C:\Users\mario\source\repos\snapterest\node_modules\browser-resolve\node_modules\resolve\lib\async.js:55:21 at load (C:\Users\mario\source\repos\snapterest\node_modules\browser-resolve\node_modules\resolve\lib\async.js:69:43)at onex (C:\Users\mario\source\repos\snapterest\node_modules\browser-resolve\node_modules\resolve\lib\async.js:92:31) at C:\Users\mario\source\repos\snapterest\node_modules\browser-resolve\node_modules\resolve\lib\async.js:22:47 at FSReqWrap.oncomplete (fs.js:154:21)

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