reactjs - Module can not be found - Javascript React -
i have react project 2 source files: rmain.jsx
, rcategory.jsx
. building project using browserify this:
gulp.task('builddt', function(){ browserify({ entries: ['src/app/datatree/rmain.jsx', 'src/app/datatree/rcategory.jsx'], transform: [reactify], debug: true }) .bundle() .pipe(source('listapplication.js')) .pipe(streamify(uglify({file:'listapplication.js'}))) .pipe(gulp.dest('src/app/datatree/')); });
unfortunatelly, following error:
events.js:85 throw er; // unhandled 'error' event ^ error: cannot find module 'rcategory.jsx'
the module in correct location. why happening?
Comments
Post a Comment