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

Popular posts from this blog

html - Outlook 2010 Anchor (url/address/link) -

javascript - Why does running this loop 9 times take 100x longer than running it 8 times? -

Getting gateway time-out Rails app with Nginx + Puma running on Digital Ocean -