malditogeek / vmux

Secure P2P text, audio and video chats in your browser.
https://vmux.co
BSD 4-Clause "Original" or "Old" License
605 stars 67 forks source link

Cannot find module './bundler #31

Open lingdu0001 opened 9 years ago

lingdu0001 commented 9 years ago

After i run gulp, it comes as followings. Error: Cannot find module './bundler' at Function.Module._resolveFilename (module.js:338:15) at Function.Module._load (module.js:280:25) at Module.require (module.js:364:17) at require (module.js:380:17) at Object. (/opt/webrtc/vmux/gulpfile.js:4:20) at Module._compile (module.js:456:26) at Object.Module._extensions..js (module.js:474:10) at Module.load (module.js:356:32) at Function.Module._load (module.js:312:12) at Module.require (module.js:364:17)

lingdu0001 commented 9 years ago

If i change "var bundlerClass = require('./bundler')" to "var bundlerClass = require('bundler');"in gulpfile.js

gulp

Then the error is:

TypeError: object is not a function at Object. (/opt/webrtc/vmux/gulpfile.js:5:15) at Module._compile (module.js:456:26) at Object.Module._extensions..js (module.js:474:10) at Module.load (module.js:356:32) at Function.Module._load (module.js:312:12) at Module.require (module.js:364:17) at require (module.js:380:17) at Liftoff.handleArguments (/usr/lib/node_modules/gulp/bin/gulp.js:116:3) at Liftoff. (/usr/lib/node_modules/gulp/node_modules/liftoff/index.js:159:12) at module.exports (/usr/lib/node_modules/gulp/node_modules/liftoff/node_modules/flagged-respawn/index.js:17:3)

comuttun commented 9 years ago

@lingdu0001 I'm also on this problem. This is because of capitalized filename Bundler.js. I tried git mv Bundler.js bundler.js, and gulp went well.

lingdu0001 commented 9 years ago

@comutt Thank you ,it worked!