什么文件崩溃浏览器?

时间:2015-09-15 15:44:48

标签: browserify

使用这样的代码(此处未显示更多内容)

var inB = b.bundle()
  .on('error', function(er){
    console.log(er, er.stack);
  })

我得到这样的输出(当它失败时)

{ [Error: Cannot find module '../glyphicon' from '/home/me/react/folder']
  stream:
   { _readableState:
      { highWaterMark: 16,
        buffer: [],
        length: 0,
        pipes: [Object],
        pipesCount: 1,
        flowing: true,
        ended: false,
        endEmitted: false,
        reading: true,
        sync: false,
        needReadable: true,
        emittedReadable: false,
        readableListening: false,
        objectMode: true,
        defaultEncoding: 'utf8',
        ranOut: false,
        awaitDrain: 0,
        readingMore: false,
        decoder: null,
        encoding: null,
        resumeScheduled: false },
     readable: true,
     domain: null,
     _events:
      { end: [Object],
        error: [Object],
        data: [Function: ondata],
        _mutate: [Object] },
     _maxListeners: 10,
     _writableState:
      { highWaterMark: 16,
        objectMode: true,
        needDrain: false,
        ending: true,
        ended: true,
        finished: true,
        decodeStrings: true,
        defaultEncoding: 'utf8',
        length: 0,
        writing: false,
        corked: 0,
        sync: false,
        bufferProcessing: false,
        onwrite: [Function],
        writecb: null,
        writelen: 0,
        buffer: [],
        pendingcb: 0,
        prefinished: true,
        errorEmitted: false },
     writable: true,
     allowHalfOpen: true,
     _options: { objectMode: true },
     _wrapOptions: { objectMode: true },
     _streams: [ [Object], [Object] ],
     length: 2,
     label: 'deps' } } 

'Error: Cannot find module \'../glyphicon\' from \'/home/me/react/folder\'\n  at
 /home/me/node_modules/browserify/node_modules/resolve/lib/async.js:55:21\n  at 
load (/home/me/node_modules/browserify/node_modules/resolve/lib/async.js:69:43)\n  at 
onex (/home/me/node_modules/browserify/node_modules/resolve/lib/async.js:92:31)\n  at
 /home/me/node_modules/browserify/node_modules/resolve/lib/async.js:22:47\n  at 
Object.oncomplete (fs.js:108:15)\n'

所以,我有很多浏览器的东西,但是虽然我已经浏览了它的几个部分,但我没有看到任何具有错误发生的特定文件名的地方!有没有办法找出文件名,而不仅仅是文件夹?

0 个答案:

没有答案