Closed qzhou1607-zz closed 7 years ago
ERROR Asset render failed: js/lazyload.min.js
TypeError: Cannot read property 'length' of undefined
at Hexo.OptimizeJS (/mnt/d/Documents/Blog/node_modules/hexo-all-minifier/lib/optimizeJS.js:27:41)
at Hexo.tryCatcher (/mnt/d/Documents/Blog/node_modules/bluebird/js/release/util.js:16:23)
at Hexo.<anonymous> (/mnt/d/Documents/Blog/node_modules/bluebird/js/release/method.js:15:34)
at /mnt/d/Documents/Blog/node_modules/hexo/lib/extend/filter.js:68:35
at tryCatcher (/mnt/d/Documents/Blog/node_modules/bluebird/js/release/util.js:16:23)
at Object.gotValue (/mnt/d/Documents/Blog/node_modules/bluebird/js/release/reduce.js:155:18)
at Object.gotAccum (/mnt/d/Documents/Blog/node_modules/bluebird/js/release/reduce.js:144:25)
at Object.tryCatcher (/mnt/d/Documents/Blog/node_modules/bluebird/js/release/util.js:16:23)
at Promise._settlePromiseFromHandler (/mnt/d/Documents/Blog/node_modules/bluebird/js/release/promise.js:512:31)
at Promise._settlePromise (/mnt/d/Documents/Blog/node_modules/bluebird/js/release/promise.js:569:18)
at Promise._settlePromiseCtx (/mnt/d/Documents/Blog/node_modules/bluebird/js/release/promise.js:606:10)
at Async._drainQueue (/mnt/d/Documents/Blog/node_modules/bluebird/js/release/async.js:138:12)
at Async._drainQueues (/mnt/d/Documents/Blog/node_modules/bluebird/js/release/async.js:143:10)
at Immediate.Async.drainQueues (/mnt/d/Documents/Blog/node_modules/bluebird/js/release/async.js:17:14)
at runCallback (timers.js:800:20)
at tryOnImmediate (timers.js:762:5)
at processImmediate [as _immediateCallback] (timers.js:733:5)
ERROR Asset render failed: js/nprogress.js
TypeError: Cannot read property 'length' of undefined
at Hexo.OptimizeJS (/mnt/d/Documents/Blog/node_modules/hexo-all-minifier/lib/optimizeJS.js:27:41)
at Hexo.tryCatcher (/mnt/d/Documents/Blog/node_modules/bluebird/js/release/util.js:16:23)
at Hexo.<anonymous> (/mnt/d/Documents/Blog/node_modules/bluebird/js/release/method.js:15:34)
at /mnt/d/Documents/Blog/node_modules/hexo/lib/extend/filter.js:68:35
at tryCatcher (/mnt/d/Documents/Blog/node_modules/bluebird/js/release/util.js:16:23)
at Object.gotValue (/mnt/d/Documents/Blog/node_modules/bluebird/js/release/reduce.js:155:18)
at Object.gotAccum (/mnt/d/Documents/Blog/node_modules/bluebird/js/release/reduce.js:144:25)
at Object.tryCatcher (/mnt/d/Documents/Blog/node_modules/bluebird/js/release/util.js:16:23)
at Promise._settlePromiseFromHandler (/mnt/d/Documents/Blog/node_modules/bluebird/js/release/promise.js:512:31)
at Promise._settlePromise (/mnt/d/Documents/Blog/node_modules/bluebird/js/release/promise.js:569:18)
at Promise._settlePromiseCtx (/mnt/d/Documents/Blog/node_modules/bluebird/js/release/promise.js:606:10)
at Async._drainQueue (/mnt/d/Documents/Blog/node_modules/bluebird/js/release/async.js:138:12)
at Async._drainQueues (/mnt/d/Documents/Blog/node_modules/bluebird/js/release/async.js:143:10)
at Immediate.Async.drainQueues (/mnt/d/Documents/Blog/node_modules/bluebird/js/release/async.js:17:14)
at runCallback (timers.js:800:20)
at tryOnImmediate (timers.js:762:5)
at processImmediate [as _immediateCallback] (timers.js:733:5)
ERROR Asset render failed: js/mathjax.js
TypeError: Cannot read property 'length' of undefined
at Hexo.OptimizeJS (/mnt/d/Documents/Blog/node_modules/hexo-all-minifier/lib/optimizeJS.js:27:41)
at Hexo.tryCatcher (/mnt/d/Documents/Blog/node_modules/bluebird/js/release/util.js:16:23)
at Hexo.<anonymous> (/mnt/d/Documents/Blog/node_modules/bluebird/js/release/method.js:15:34)
at /mnt/d/Documents/Blog/node_modules/hexo/lib/extend/filter.js:68:35
at tryCatcher (/mnt/d/Documents/Blog/node_modules/bluebird/js/release/util.js:16:23)
at Object.gotValue (/mnt/d/Documents/Blog/node_modules/bluebird/js/release/reduce.js:155:18)
at Object.gotAccum (/mnt/d/Documents/Blog/node_modules/bluebird/js/release/reduce.js:144:25)
at Object.tryCatcher (/mnt/d/Documents/Blog/node_modules/bluebird/js/release/util.js:16:23)
at Promise._settlePromiseFromHandler (/mnt/d/Documents/Blog/node_modules/bluebird/js/release/promise.js:512:31)
at Promise._settlePromise (/mnt/d/Documents/Blog/node_modules/bluebird/js/release/promise.js:569:18)
at Promise._settlePromiseCtx (/mnt/d/Documents/Blog/node_modules/bluebird/js/release/promise.js:606:10)
at Async._drainQueue (/mnt/d/Documents/Blog/node_modules/bluebird/js/release/async.js:138:12)
at Async._drainQueues (/mnt/d/Documents/Blog/node_modules/bluebird/js/release/async.js:143:10)
at Immediate.Async.drainQueues (/mnt/d/Documents/Blog/node_modules/bluebird/js/release/async.js:17:14)
at runCallback (timers.js:800:20)
at tryOnImmediate (timers.js:762:5)
at processImmediate [as _immediateCallback] (timers.js:733:5)
ERROR Asset render failed: js/queue.min.js
TypeError: Cannot read property 'length' of undefined
at Hexo.OptimizeJS (/mnt/d/Documents/Blog/node_modules/hexo-all-minifier/lib/optimizeJS.js:27:41)
at Hexo.tryCatcher (/mnt/d/Documents/Blog/node_modules/bluebird/js/release/util.js:16:23)
at Hexo.<anonymous> (/mnt/d/Documents/Blog/node_modules/bluebird/js/release/method.js:15:34)
at /mnt/d/Documents/Blog/node_modules/hexo/lib/extend/filter.js:68:35
at tryCatcher (/mnt/d/Documents/Blog/node_modules/bluebird/js/release/util.js:16:23)
at Object.gotValue (/mnt/d/Documents/Blog/node_modules/bluebird/js/release/reduce.js:155:18)
at Object.gotAccum (/mnt/d/Documents/Blog/node_modules/bluebird/js/release/reduce.js:144:25)
at Object.tryCatcher (/mnt/d/Documents/Blog/node_modules/bluebird/js/release/util.js:16:23)
at Promise._settlePromiseFromHandler (/mnt/d/Documents/Blog/node_modules/bluebird/js/release/promise.js:512:31)
at Promise._settlePromise (/mnt/d/Documents/Blog/node_modules/bluebird/js/release/promise.js:569:18)
at Promise._settlePromiseCtx (/mnt/d/Documents/Blog/node_modules/bluebird/js/release/promise.js:606:10)
at Async._drainQueue (/mnt/d/Documents/Blog/node_modules/bluebird/js/release/async.js:138:12)
at Async._drainQueues (/mnt/d/Documents/Blog/node_modules/bluebird/js/release/async.js:143:10)
at Immediate.Async.drainQueues (/mnt/d/Documents/Blog/node_modules/bluebird/js/release/async.js:17:14)
at runCallback (timers.js:800:20)
at tryOnImmediate (timers.js:762:5)
at processImmediate [as _immediateCallback] (timers.js:733:5)
ERROR Asset render failed: js/ie-blocker.en.js
TypeError: Cannot read property 'length' of undefined
at Hexo.OptimizeJS (/mnt/d/Documents/Blog/node_modules/hexo-all-minifier/lib/optimizeJS.js:27:41)
at Hexo.tryCatcher (/mnt/d/Documents/Blog/node_modules/bluebird/js/release/util.js:16:23)
at Hexo.<anonymous> (/mnt/d/Documents/Blog/node_modules/bluebird/js/release/method.js:15:34)
at /mnt/d/Documents/Blog/node_modules/hexo/lib/extend/filter.js:68:35
at tryCatcher (/mnt/d/Documents/Blog/node_modules/bluebird/js/release/util.js:16:23)
at Object.gotValue (/mnt/d/Documents/Blog/node_modules/bluebird/js/release/reduce.js:155:18)
at Object.gotAccum (/mnt/d/Documents/Blog/node_modules/bluebird/js/release/reduce.js:144:25)
at Object.tryCatcher (/mnt/d/Documents/Blog/node_modules/bluebird/js/release/util.js:16:23)
at Promise._settlePromiseFromHandler (/mnt/d/Documents/Blog/node_modules/bluebird/js/release/promise.js:512:31)
at Promise._settlePromise (/mnt/d/Documents/Blog/node_modules/bluebird/js/release/promise.js:569:18)
at Promise._settlePromiseCtx (/mnt/d/Documents/Blog/node_modules/bluebird/js/release/promise.js:606:10)
at Async._drainQueue (/mnt/d/Documents/Blog/node_modules/bluebird/js/release/async.js:138:12)
at Async._drainQueues (/mnt/d/Documents/Blog/node_modules/bluebird/js/release/async.js:143:10)
at Immediate.Async.drainQueues (/mnt/d/Documents/Blog/node_modules/bluebird/js/release/async.js:17:14)
at runCallback (timers.js:800:20)
at tryOnImmediate (timers.js:762:5)
at processImmediate [as _immediateCallback] (timers.js:733:5)
ERROR Asset render failed: js/smoothscroll.js
TypeError: Cannot read property 'length' of undefined
at Hexo.OptimizeJS (/mnt/d/Documents/Blog/node_modules/hexo-all-minifier/lib/optimizeJS.js:27:41)
at Hexo.tryCatcher (/mnt/d/Documents/Blog/node_modules/bluebird/js/release/util.js:16:23)
at Hexo.<anonymous> (/mnt/d/Documents/Blog/node_modules/bluebird/js/release/method.js:15:34)
at /mnt/d/Documents/Blog/node_modules/hexo/lib/extend/filter.js:68:35
at tryCatcher (/mnt/d/Documents/Blog/node_modules/bluebird/js/release/util.js:16:23)
at Object.gotValue (/mnt/d/Documents/Blog/node_modules/bluebird/js/release/reduce.js:155:18)
at Object.gotAccum (/mnt/d/Documents/Blog/node_modules/bluebird/js/release/reduce.js:144:25)
at Object.tryCatcher (/mnt/d/Documents/Blog/node_modules/bluebird/js/release/util.js:16:23)
at Promise._settlePromiseFromHandler (/mnt/d/Documents/Blog/node_modules/bluebird/js/release/promise.js:512:31)
at Promise._settlePromise (/mnt/d/Documents/Blog/node_modules/bluebird/js/release/promise.js:569:18)
at Promise._settlePromiseCtx (/mnt/d/Documents/Blog/node_modules/bluebird/js/release/promise.js:606:10)
at Async._drainQueue (/mnt/d/Documents/Blog/node_modules/bluebird/js/release/async.js:138:12)
at Async._drainQueues (/mnt/d/Documents/Blog/node_modules/bluebird/js/release/async.js:143:10)
at Immediate.Async.drainQueues (/mnt/d/Documents/Blog/node_modules/bluebird/js/release/async.js:17:14)
at runCallback (timers.js:800:20)
at tryOnImmediate (timers.js:762:5)
at processImmediate [as _immediateCallback] (timers.js:733:5)
ERROR Asset render failed: js/queue.js
TypeError: Cannot read property 'length' of undefined
at Hexo.OptimizeJS (/mnt/d/Documents/Blog/node_modules/hexo-all-minifier/lib/optimizeJS.js:27:41)
at Hexo.tryCatcher (/mnt/d/Documents/Blog/node_modules/bluebird/js/release/util.js:16:23)
at Hexo.<anonymous> (/mnt/d/Documents/Blog/node_modules/bluebird/js/release/method.js:15:34)
at /mnt/d/Documents/Blog/node_modules/hexo/lib/extend/filter.js:68:35
at tryCatcher (/mnt/d/Documents/Blog/node_modules/bluebird/js/release/util.js:16:23)
at Object.gotValue (/mnt/d/Documents/Blog/node_modules/bluebird/js/release/reduce.js:155:18)
at Object.gotAccum (/mnt/d/Documents/Blog/node_modules/bluebird/js/release/reduce.js:144:25)
at Object.tryCatcher (/mnt/d/Documents/Blog/node_modules/bluebird/js/release/util.js:16:23)
at Promise._settlePromiseFromHandler (/mnt/d/Documents/Blog/node_modules/bluebird/js/release/promise.js:512:31)
at Promise._settlePromise (/mnt/d/Documents/Blog/node_modules/bluebird/js/release/promise.js:569:18)
at Promise._settlePromiseCtx (/mnt/d/Documents/Blog/node_modules/bluebird/js/release/promise.js:606:10)
at Async._drainQueue (/mnt/d/Documents/Blog/node_modules/bluebird/js/release/async.js:138:12)
at Async._drainQueues (/mnt/d/Documents/Blog/node_modules/bluebird/js/release/async.js:143:10)
at Immediate.Async.drainQueues (/mnt/d/Documents/Blog/node_modules/bluebird/js/release/async.js:17:14)
at runCallback (timers.js:800:20)
at tryOnImmediate (timers.js:762:5)
at processImmediate [as _immediateCallback] (timers.js:733:5)
ERROR Asset render failed: js/lsloader.min.js
TypeError: Cannot read property 'length' of undefined
at Hexo.OptimizeJS (/mnt/d/Documents/Blog/node_modules/hexo-all-minifier/lib/optimizeJS.js:27:41)
at Hexo.tryCatcher (/mnt/d/Documents/Blog/node_modules/bluebird/js/release/util.js:16:23)
at Hexo.<anonymous> (/mnt/d/Documents/Blog/node_modules/bluebird/js/release/method.js:15:34)
at /mnt/d/Documents/Blog/node_modules/hexo/lib/extend/filter.js:68:35
at tryCatcher (/mnt/d/Documents/Blog/node_modules/bluebird/js/release/util.js:16:23)
at Object.gotValue (/mnt/d/Documents/Blog/node_modules/bluebird/js/release/reduce.js:155:18)
at Object.gotAccum (/mnt/d/Documents/Blog/node_modules/bluebird/js/release/reduce.js:144:25)
at Object.tryCatcher (/mnt/d/Documents/Blog/node_modules/bluebird/js/release/util.js:16:23)
at Promise._settlePromiseFromHandler (/mnt/d/Documents/Blog/node_modules/bluebird/js/release/promise.js:512:31)
at Promise._settlePromise (/mnt/d/Documents/Blog/node_modules/bluebird/js/release/promise.js:569:18)
at Promise._settlePromiseCtx (/mnt/d/Documents/Blog/node_modules/bluebird/js/release/promise.js:606:10)
at Async._drainQueue (/mnt/d/Documents/Blog/node_modules/bluebird/js/release/async.js:138:12)
at Async._drainQueues (/mnt/d/Documents/Blog/node_modules/bluebird/js/release/async.js:143:10)
at Immediate.Async.drainQueues (/mnt/d/Documents/Blog/node_modules/bluebird/js/release/async.js:17:14)
at runCallback (timers.js:800:20)
at tryOnImmediate (timers.js:762:5)
at processImmediate [as _immediateCallback] (timers.js:733:5)
ERROR Asset render failed: js/ie-blocker.zhCN.js
TypeError: Cannot read property 'length' of undefined
at Hexo.OptimizeJS (/mnt/d/Documents/Blog/node_modules/hexo-all-minifier/lib/optimizeJS.js:27:41)
at Hexo.tryCatcher (/mnt/d/Documents/Blog/node_modules/bluebird/js/release/util.js:16:23)
at Hexo.<anonymous> (/mnt/d/Documents/Blog/node_modules/bluebird/js/release/method.js:15:34)
at /mnt/d/Documents/Blog/node_modules/hexo/lib/extend/filter.js:68:35
at tryCatcher (/mnt/d/Documents/Blog/node_modules/bluebird/js/release/util.js:16:23)
at Object.gotValue (/mnt/d/Documents/Blog/node_modules/bluebird/js/release/reduce.js:155:18)
at Object.gotAccum (/mnt/d/Documents/Blog/node_modules/bluebird/js/release/reduce.js:144:25)
at Object.tryCatcher (/mnt/d/Documents/Blog/node_modules/bluebird/js/release/util.js:16:23)
at Promise._settlePromiseFromHandler (/mnt/d/Documents/Blog/node_modules/bluebird/js/release/promise.js:512:31)
at Promise._settlePromise (/mnt/d/Documents/Blog/node_modules/bluebird/js/release/promise.js:569:18)
at Promise._settlePromiseCtx (/mnt/d/Documents/Blog/node_modules/bluebird/js/release/promise.js:606:10)
at Async._drainQueue (/mnt/d/Documents/Blog/node_modules/bluebird/js/release/async.js:138:12)
at Async._drainQueues (/mnt/d/Documents/Blog/node_modules/bluebird/js/release/async.js:143:10)
at Immediate.Async.drainQueues (/mnt/d/Documents/Blog/node_modules/bluebird/js/release/async.js:17:14)
at runCallback (timers.js:800:20)
at tryOnImmediate (timers.js:762:5)
at processImmediate [as _immediateCallback] (timers.js:733:5)
ERROR Asset render failed: js/lsloader.js
TypeError: Cannot read property 'length' of undefined
at Hexo.OptimizeJS (/mnt/d/Documents/Blog/node_modules/hexo-all-minifier/lib/optimizeJS.js:27:41)
at Hexo.tryCatcher (/mnt/d/Documents/Blog/node_modules/bluebird/js/release/util.js:16:23)
at Hexo.<anonymous> (/mnt/d/Documents/Blog/node_modules/bluebird/js/release/method.js:15:34)
at /mnt/d/Documents/Blog/node_modules/hexo/lib/extend/filter.js:68:35
at tryCatcher (/mnt/d/Documents/Blog/node_modules/bluebird/js/release/util.js:16:23)
at Object.gotValue (/mnt/d/Documents/Blog/node_modules/bluebird/js/release/reduce.js:155:18)
at Object.gotAccum (/mnt/d/Documents/Blog/node_modules/bluebird/js/release/reduce.js:144:25)
at Object.tryCatcher (/mnt/d/Documents/Blog/node_modules/bluebird/js/release/util.js:16:23)
at Promise._settlePromiseFromHandler (/mnt/d/Documents/Blog/node_modules/bluebird/js/release/promise.js:512:31)
at Promise._settlePromise (/mnt/d/Documents/Blog/node_modules/bluebird/js/release/promise.js:569:18)
at Promise._settlePromiseCtx (/mnt/d/Documents/Blog/node_modules/bluebird/js/release/promise.js:606:10)
at Async._drainQueue (/mnt/d/Documents/Blog/node_modules/bluebird/js/release/async.js:138:12)
at Async._drainQueues (/mnt/d/Documents/Blog/node_modules/bluebird/js/release/async.js:143:10)
at Immediate.Async.drainQueues (/mnt/d/Documents/Blog/node_modules/bluebird/js/release/async.js:17:14)
at runCallback (timers.js:800:20)
at tryOnImmediate (timers.js:762:5)
at processImmediate [as _immediateCallback] (timers.js:733:5)
ERROR Asset render failed: js/jquery.min.js
TypeError: Cannot read property 'length' of undefined
at Hexo.OptimizeJS (/mnt/d/Documents/Blog/node_modules/hexo-all-minifier/lib/optimizeJS.js:27:41)
at Hexo.tryCatcher (/mnt/d/Documents/Blog/node_modules/bluebird/js/release/util.js:16:23)
at Hexo.<anonymous> (/mnt/d/Documents/Blog/node_modules/bluebird/js/release/method.js:15:34)
at /mnt/d/Documents/Blog/node_modules/hexo/lib/extend/filter.js:68:35
at tryCatcher (/mnt/d/Documents/Blog/node_modules/bluebird/js/release/util.js:16:23)
at Object.gotValue (/mnt/d/Documents/Blog/node_modules/bluebird/js/release/reduce.js:155:18)
at Object.gotAccum (/mnt/d/Documents/Blog/node_modules/bluebird/js/release/reduce.js:144:25)
at Object.tryCatcher (/mnt/d/Documents/Blog/node_modules/bluebird/js/release/util.js:16:23)
at Promise._settlePromiseFromHandler (/mnt/d/Documents/Blog/node_modules/bluebird/js/release/promise.js:512:31)
at Promise._settlePromise (/mnt/d/Documents/Blog/node_modules/bluebird/js/release/promise.js:569:18)
at Promise._settlePromiseCtx (/mnt/d/Documents/Blog/node_modules/bluebird/js/release/promise.js:606:10)
at Async._drainQueue (/mnt/d/Documents/Blog/node_modules/bluebird/js/release/async.js:138:12)
at Async._drainQueues (/mnt/d/Documents/Blog/node_modules/bluebird/js/release/async.js:143:10)
at Immediate.Async.drainQueues (/mnt/d/Documents/Blog/node_modules/bluebird/js/release/async.js:17:14)
at runCallback (timers.js:800:20)
at tryOnImmediate (timers.js:762:5)
at processImmediate [as _immediateCallback] (timers.js:733:5)
ERROR Asset render failed: js/js.js
TypeError: Cannot read property 'length' of undefined
at Hexo.OptimizeJS (/mnt/d/Documents/Blog/node_modules/hexo-all-minifier/lib/optimizeJS.js:27:41)
at Hexo.tryCatcher (/mnt/d/Documents/Blog/node_modules/bluebird/js/release/util.js:16:23)
at Hexo.<anonymous> (/mnt/d/Documents/Blog/node_modules/bluebird/js/release/method.js:15:34)
at /mnt/d/Documents/Blog/node_modules/hexo/lib/extend/filter.js:68:35
at tryCatcher (/mnt/d/Documents/Blog/node_modules/bluebird/js/release/util.js:16:23)
at Object.gotValue (/mnt/d/Documents/Blog/node_modules/bluebird/js/release/reduce.js:155:18)
at Object.gotAccum (/mnt/d/Documents/Blog/node_modules/bluebird/js/release/reduce.js:144:25)
at Object.tryCatcher (/mnt/d/Documents/Blog/node_modules/bluebird/js/release/util.js:16:23)
at Promise._settlePromiseFromHandler (/mnt/d/Documents/Blog/node_modules/bluebird/js/release/promise.js:512:31)
at Promise._settlePromise (/mnt/d/Documents/Blog/node_modules/bluebird/js/release/promise.js:569:18)
at Promise._settlePromiseCtx (/mnt/d/Documents/Blog/node_modules/bluebird/js/release/promise.js:606:10)
at Async._drainQueue (/mnt/d/Documents/Blog/node_modules/bluebird/js/release/async.js:138:12)
at Async._drainQueues (/mnt/d/Documents/Blog/node_modules/bluebird/js/release/async.js:143:10)
at Immediate.Async.drainQueues (/mnt/d/Documents/Blog/node_modules/bluebird/js/release/async.js:17:14)
at runCallback (timers.js:800:20)
at tryOnImmediate (timers.js:762:5)
at processImmediate [as _immediateCallback] (timers.js:733:5)
ERROR Asset render failed: js/js.min.js
TypeError: Cannot read property 'length' of undefined
at Hexo.OptimizeJS (/mnt/d/Documents/Blog/node_modules/hexo-all-minifier/lib/optimizeJS.js:27:41)
at Hexo.tryCatcher (/mnt/d/Documents/Blog/node_modules/bluebird/js/release/util.js:16:23)
at Hexo.<anonymous> (/mnt/d/Documents/Blog/node_modules/bluebird/js/release/method.js:15:34)
at /mnt/d/Documents/Blog/node_modules/hexo/lib/extend/filter.js:68:35
at tryCatcher (/mnt/d/Documents/Blog/node_modules/bluebird/js/release/util.js:16:23)
at Object.gotValue (/mnt/d/Documents/Blog/node_modules/bluebird/js/release/reduce.js:155:18)
at Object.gotAccum (/mnt/d/Documents/Blog/node_modules/bluebird/js/release/reduce.js:144:25)
at Object.tryCatcher (/mnt/d/Documents/Blog/node_modules/bluebird/js/release/util.js:16:23)
at Promise._settlePromiseFromHandler (/mnt/d/Documents/Blog/node_modules/bluebird/js/release/promise.js:512:31)
at Promise._settlePromise (/mnt/d/Documents/Blog/node_modules/bluebird/js/release/promise.js:569:18)
at Promise._settlePromiseCtx (/mnt/d/Documents/Blog/node_modules/bluebird/js/release/promise.js:606:10)
at Async._drainQueue (/mnt/d/Documents/Blog/node_modules/bluebird/js/release/async.js:138:12)
at Async._drainQueues (/mnt/d/Documents/Blog/node_modules/bluebird/js/release/async.js:143:10)
at Immediate.Async.drainQueues (/mnt/d/Documents/Blog/node_modules/bluebird/js/release/async.js:17:14)
at runCallback (timers.js:800:20)
at tryOnImmediate (timers.js:762:5)
at processImmediate [as _immediateCallback] (timers.js:733:5)
ERROR Asset render failed: js/gallery/gallery.js
TypeError: Cannot read property 'length' of undefined
at Hexo.OptimizeJS (/mnt/d/Documents/Blog/node_modules/hexo-all-minifier/lib/optimizeJS.js:27:41)
at Hexo.tryCatcher (/mnt/d/Documents/Blog/node_modules/bluebird/js/release/util.js:16:23)
at Hexo.<anonymous> (/mnt/d/Documents/Blog/node_modules/bluebird/js/release/method.js:15:34)
at /mnt/d/Documents/Blog/node_modules/hexo/lib/extend/filter.js:68:35
at tryCatcher (/mnt/d/Documents/Blog/node_modules/bluebird/js/release/util.js:16:23)
at Object.gotValue (/mnt/d/Documents/Blog/node_modules/bluebird/js/release/reduce.js:155:18)
at Object.gotAccum (/mnt/d/Documents/Blog/node_modules/bluebird/js/release/reduce.js:144:25)
at Object.tryCatcher (/mnt/d/Documents/Blog/node_modules/bluebird/js/release/util.js:16:23)
at Promise._settlePromiseFromHandler (/mnt/d/Documents/Blog/node_modules/bluebird/js/release/promise.js:512:31)
at Promise._settlePromise (/mnt/d/Documents/Blog/node_modules/bluebird/js/release/promise.js:569:18)
at Promise._settlePromiseCtx (/mnt/d/Documents/Blog/node_modules/bluebird/js/release/promise.js:606:10)
at Async._drainQueue (/mnt/d/Documents/Blog/node_modules/bluebird/js/release/async.js:138:12)
at Async._drainQueues (/mnt/d/Documents/Blog/node_modules/bluebird/js/release/async.js:143:10)
at Immediate.Async.drainQueues (/mnt/d/Documents/Blog/node_modules/bluebird/js/release/async.js:17:14)
at runCallback (timers.js:800:20)
at tryOnImmediate (timers.js:762:5)
at processImmediate [as _immediateCallback] (timers.js:733:5)
I tried hexo-filter-cleanup and it works fine.
Can you provide a minimal repo to reproduce the bug? Because it works fine on my site.. Currently, I will add some exception handler.
After update to the latest version (v0.2.2), the js minifier stops working.
The
result
returned fromUglifyJS.minify
doesn't have propertycode
, which caused this error when trying to get length and calculate the percentage. Below is the actual content ofresult
. It looks likefromString
is not an option inuglify-es
, and comment out that setting fixed the error.