Closed galexrt closed 8 years ago
我也报错了..
FATAL Something's wrong. Maybe you can find the solution here: http://hexo.io/docs/troubleshooting.html
TypeError: (input, output, opts) => {
if (!Array.isArray(input)) {
return Promise.reject(new TypeError('Expected an arr...<omitted>...
} is not a constructor
at /home/coding/workspace/node_modules/hexo-all-minifier/lib/filter.js:122:28
at tryCatcher (/home/coding/workspace/node_modules/bluebird/js/release/util.js:16:23)
at Promise._settlePromiseFromHandler (/home/coding/workspace/node_modules/bluebird/js/release/promise.js:502:
31)
at Promise._settlePromise (/home/coding/workspace/node_modules/bluebird/js/release/promise.js:559:18)
at Promise._settlePromise0 (/home/coding/workspace/node_modules/bluebird/js/release/promise.js:604:10)
at Promise._settlePromises (/home/coding/workspace/node_modules/bluebird/js/release/promise.js:683:18)
at Promise._fulfill (/home/coding/workspace/node_modules/bluebird/js/release/promise.js:628:18)
at Promise._resolveCallback (/home/coding/workspace/node_modules/bluebird/js/release/promise.js:423:57)
at Promise._settlePromiseFromHandler (/home/coding/workspace/node_modules/bluebird/js/release/promise.js:514:
17)
at Promise._settlePromise (/home/coding/workspace/node_modules/bluebird/js/release/promise.js:559:18)
at Promise._settlePromise0 (/home/coding/workspace/node_modules/bluebird/js/release/promise.js:604:10)
at Promise._settlePromises (/home/coding/workspace/node_modules/bluebird/js/release/promise.js:683:18)
at Promise._fulfill (/home/coding/workspace/node_modules/bluebird/js/release/promise.js:628:18)
at /home/coding/workspace/node_modules/bluebird/js/release/nodeback.js:42:21
at /home/coding/workspace/node_modules/stream-to-array/index.js:54:9
at _combinedTickCallback (node.js:370:9)
at process._tickCallback (node.js:401:11)
FATAL (input, output, opts) => {
if (!Array.isArray(input)) {
return Promise.reject(new TypeError('Expected an arr...<omitted>...
} is not a constructor
TypeError: (input, output, opts) => {
if (!Array.isArray(input)) {
return Promise.reject(new TypeError('Expected an arr...<omitted>...
} is not a constructor
at /home/coding/workspace/node_modules/hexo-all-minifier/lib/filter.js:122:28
at tryCatcher (/home/coding/workspace/node_modules/bluebird/js/release/util.js:16:23)
at Promise._settlePromiseFromHandler (/home/coding/workspace/node_modules/bluebird/js/release/promise.js:502:
31)
at Promise._settlePromise (/home/coding/workspace/node_modules/bluebird/js/release/promise.js:559:18)
at Promise._settlePromise0 (/home/coding/workspace/node_modules/bluebird/js/release/promise.js:604:10)
at Promise._settlePromises (/home/coding/workspace/node_modules/bluebird/js/release/promise.js:683:18)
at Promise._fulfill (/home/coding/workspace/node_modules/bluebird/js/release/promise.js:628:18)
at Promise._resolveCallback (/home/coding/workspace/node_modules/bluebird/js/release/promise.js:423:57)
at Promise._settlePromiseFromHandler (/home/coding/workspace/node_modules/bluebird/js/release/promise.js:514:
17)
at Promise._settlePromise (/home/coding/workspace/node_modules/bluebird/js/release/promise.js:559:18)
at Promise._settlePromise0 (/home/coding/workspace/node_modules/bluebird/js/release/promise.js:604:10)
at Promise._settlePromises (/home/coding/workspace/node_modules/bluebird/js/release/promise.js:683:18)
at Promise._fulfill (/home/coding/workspace/node_modules/bluebird/js/release/promise.js:628:18)
at /home/coding/workspace/node_modules/bluebird/js/release/nodeback.js:42:21
at /home/coding/workspace/node_modules/stream-to-array/index.js:54:9
at _combinedTickCallback (node.js:370:9)
at process._tickCallback (node.js:401:11)
我这边也报错了,不过我只设置了html压缩。
FATAL Something's wrong. Maybe you can find the solution here: http://hexo.io/docs/troubleshooting.html
TypeError: (input, output, opts) => {
if (!Array.isArray(input)) {
return Promise.reject(new TypeError('Expected an arr...<omitted>...
} is not a constructor
at /Users/ruxin/website/blog/node_modules/hexo-all-minifier/lib/filter.js:122:28
at tryCatcher (/Users/ruxin/website/blog/node_modules/hexo-all-minifier/node_modules/bluebird/js/release/util.js:16:23)
at Promise._settlePromiseFromHandler (/Users/ruxin/website/blog/node_modules/hexo-all-minifier/node_modules/bluebird/js/release/promise.js:502:31)
at Promise._settlePromise (/Users/ruxin/website/blog/node_modules/hexo-all-minifier/node_modules/bluebird/js/release/promise.js:559:18)
at Promise._settlePromise0 (/Users/ruxin/website/blog/node_modules/hexo-all-minifier/node_modules/bluebird/js/release/promise.js:604:10)
at Promise._settlePromises (/Users/ruxin/website/blog/node_modules/hexo-all-minifier/node_modules/bluebird/js/release/promise.js:683:18)
at Promise._fulfill (/Users/ruxin/website/blog/node_modules/hexo-all-minifier/node_modules/bluebird/js/release/promise.js:628:18)
at Promise._resolveCallback (/Users/ruxin/website/blog/node_modules/hexo-all-minifier/node_modules/bluebird/js/release/promise.js:423:57)
at Promise._settlePromiseFromHandler (/Users/ruxin/website/blog/node_modules/hexo-all-minifier/node_modules/bluebird/js/release/promise.js:514:17)
at Promise._settlePromise (/Users/ruxin/website/blog/node_modules/hexo-all-minifier/node_modules/bluebird/js/release/promise.js:559:18)
at Promise._settlePromise0 (/Users/ruxin/website/blog/node_modules/hexo-all-minifier/node_modules/bluebird/js/release/promise.js:604:10)
at Promise._settlePromises (/Users/ruxin/website/blog/node_modules/hexo-all-minifier/node_modules/bluebird/js/release/promise.js:683:18)
at Promise._fulfill (/Users/ruxin/website/blog/node_modules/hexo-all-minifier/node_modules/bluebird/js/release/promise.js:628:18)
at /Users/ruxin/website/blog/node_modules/hexo-all-minifier/node_modules/bluebird/js/release/nodeback.js:42:21
at /Users/ruxin/website/blog/node_modules/stream-to-array/index.js:54:9
at doNTCallback0 (node.js:428:9)
at process._tickCallback (node.js:357:13)
FATAL (input, output, opts) => {
if (!Array.isArray(input)) {
return Promise.reject(new TypeError('Expected an arr...<omitted>...
} is not a constructor
TypeError: (input, output, opts) => {
if (!Array.isArray(input)) {
return Promise.reject(new TypeError('Expected an arr...<omitted>...
} is not a constructor
at /Users/ruxin/website/blog/node_modules/hexo-all-minifier/lib/filter.js:122:28
at tryCatcher (/Users/ruxin/website/blog/node_modules/hexo-all-minifier/node_modules/bluebird/js/release/util.js:16:23)
at Promise._settlePromiseFromHandler (/Users/ruxin/website/blog/node_modules/hexo-all-minifier/node_modules/bluebird/js/release/promise.js:502:31)
at Promise._settlePromise (/Users/ruxin/website/blog/node_modules/hexo-all-minifier/node_modules/bluebird/js/release/promise.js:559:18)
at Promise._settlePromise0 (/Users/ruxin/website/blog/node_modules/hexo-all-minifier/node_modules/bluebird/js/release/promise.js:604:10)
at Promise._settlePromises (/Users/ruxin/website/blog/node_modules/hexo-all-minifier/node_modules/bluebird/js/release/promise.js:683:18)
at Promise._fulfill (/Users/ruxin/website/blog/node_modules/hexo-all-minifier/node_modules/bluebird/js/release/promise.js:628:18)
at Promise._resolveCallback (/Users/ruxin/website/blog/node_modules/hexo-all-minifier/node_modules/bluebird/js/release/promise.js:423:57)
at Promise._settlePromiseFromHandler (/Users/ruxin/website/blog/node_modules/hexo-all-minifier/node_modules/bluebird/js/release/promise.js:514:17)
at Promise._settlePromise (/Users/ruxin/website/blog/node_modules/hexo-all-minifier/node_modules/bluebird/js/release/promise.js:559:18)
at Promise._settlePromise0 (/Users/ruxin/website/blog/node_modules/hexo-all-minifier/node_modules/bluebird/js/release/promise.js:604:10)
at Promise._settlePromises (/Users/ruxin/website/blog/node_modules/hexo-all-minifier/node_modules/bluebird/js/release/promise.js:683:18)
at Promise._fulfill (/Users/ruxin/website/blog/node_modules/hexo-all-minifier/node_modules/bluebird/js/release/promise.js:628:18)
at /Users/ruxin/website/blog/node_modules/hexo-all-minifier/node_modules/bluebird/js/release/nodeback.js:42:21
at /Users/ruxin/website/blog/node_modules/stream-to-array/index.js:54:9
at doNTCallback0 (node.js:428:9)
at process._tickCallback (node.js:357:13)
@imruxin 我现在没用这个整合插件,分别用了三个单独的,没报错 http://www.tiexo.cn/html-css-js/
@tiexo @imruxin 你们两个的错可能跟nodejs的版本有关,你们用的是node5还是node6呢?
@unhealthy 我的是v5.0.0
@unhealthy 我是V5.7.0
@galexrt @tiexo @imruxin
Bugs are fixed and new version has been published.
These bugs is caused by the new api of imagemin
and more-css
.
Please try and feel free to give me feedback if you come across any bugs.
Thanks for the fix! It's working now for me. :)
unhealthy 刚去下载试了一下,我的问题还存在。 版本信息
hexo: 3.2.0
hexo-cli: 1.0.1
os: Darwin 15.5.0 darwin x64
http_parser: 2.5.0
node: 5.0.0
v8: 4.6.85.28
uv: 1.7.5
zlib: 1.2.8
ares: 1.10.1-DEV
icu: 56.1
modules: 47
openssl: 1.0.2d
_config.yml设置
# mini
html_minifier:
enable: true
exclude:
css_minifier:
enable: true
exclude:
- '*.min.css'
在出现错误前会有两行NaN%的文字
...
INFO update Optimize HTML: /Users/ruxin/website/blog/source/_posts/write-to-2012-and-four-days-later-birthday.md [ 0.99% saved]
INFO update Optimize HTML: /Users/ruxin/website/blog/source/404.html [ 22.98% saved]
INFO update Optimize HTML: /Users/ruxin/website/blog/source/categories/index.md [ NaN% saved]
INFO update Optimize HTML: /Users/ruxin/website/blog/source/about/index.md [ 1.95% saved]
INFO update Optimize HTML: /Users/ruxin/website/blog/source/tags/index.md [ NaN% saved]
接下去就是报错信息
FATAL Something's wrong. Maybe you can find the solution here: http://hexo.io/docs/troubleshooting.html
TypeError: (input, output, opts) => {
if (!Array.isArray(input)) {
return Promise.reject(new TypeError('Expected an arr...<omitted>...
} is not a constructor
at /Users/ruxin/website/blog/node_modules/hexo-all-minifier/lib/filter.js:122:28
at tryCatcher (/Users/ruxin/website/blog/node_modules/hexo-all-minifier/node_modules/bluebird/js/release/util.js:16:23)
at Promise._settlePromiseFromHandler (/Users/ruxin/website/blog/node_modules/hexo-all-minifier/node_modules/bluebird/js/release/promise.js:502:31)
at Promise._settlePromise (/Users/ruxin/website/blog/node_modules/hexo-all-minifier/node_modules/bluebird/js/release/promise.js:559:18)
at Promise._settlePromise0 (/Users/ruxin/website/blog/node_modules/hexo-all-minifier/node_modules/bluebird/js/release/promise.js:604:10)
at Promise._settlePromises (/Users/ruxin/website/blog/node_modules/hexo-all-minifier/node_modules/bluebird/js/release/promise.js:683:18)
at Promise._fulfill (/Users/ruxin/website/blog/node_modules/hexo-all-minifier/node_modules/bluebird/js/release/promise.js:628:18)
at Promise._resolveCallback (/Users/ruxin/website/blog/node_modules/hexo-all-minifier/node_modules/bluebird/js/release/promise.js:423:57)
at Promise._settlePromiseFromHandler (/Users/ruxin/website/blog/node_modules/hexo-all-minifier/node_modules/bluebird/js/release/promise.js:514:17)
at Promise._settlePromise (/Users/ruxin/website/blog/node_modules/hexo-all-minifier/node_modules/bluebird/js/release/promise.js:559:18)
at Promise._settlePromise0 (/Users/ruxin/website/blog/node_modules/hexo-all-minifier/node_modules/bluebird/js/release/promise.js:604:10)
at Promise._settlePromises (/Users/ruxin/website/blog/node_modules/hexo-all-minifier/node_modules/bluebird/js/release/promise.js:683:18)
at Promise._fulfill (/Users/ruxin/website/blog/node_modules/hexo-all-minifier/node_modules/bluebird/js/release/promise.js:628:18)
at /Users/ruxin/website/blog/node_modules/hexo-all-minifier/node_modules/bluebird/js/release/nodeback.js:42:21
at /Users/ruxin/website/blog/node_modules/stream-to-array/index.js:54:9
at doNTCallback0 (node.js:428:9)
at process._tickCallback (node.js:357:13)
FATAL (input, output, opts) => {
if (!Array.isArray(input)) {
return Promise.reject(new TypeError('Expected an arr...<omitted>...
} is not a constructor
TypeError: (input, output, opts) => {
if (!Array.isArray(input)) {
return Promise.reject(new TypeError('Expected an arr...<omitted>...
} is not a constructor
at /Users/ruxin/website/blog/node_modules/hexo-all-minifier/lib/filter.js:122:28
at tryCatcher (/Users/ruxin/website/blog/node_modules/hexo-all-minifier/node_modules/bluebird/js/release/util.js:16:23)
at Promise._settlePromiseFromHandler (/Users/ruxin/website/blog/node_modules/hexo-all-minifier/node_modules/bluebird/js/release/promise.js:502:31)
at Promise._settlePromise (/Users/ruxin/website/blog/node_modules/hexo-all-minifier/node_modules/bluebird/js/release/promise.js:559:18)
at Promise._settlePromise0 (/Users/ruxin/website/blog/node_modules/hexo-all-minifier/node_modules/bluebird/js/release/promise.js:604:10)
at Promise._settlePromises (/Users/ruxin/website/blog/node_modules/hexo-all-minifier/node_modules/bluebird/js/release/promise.js:683:18)
at Promise._fulfill (/Users/ruxin/website/blog/node_modules/hexo-all-minifier/node_modules/bluebird/js/release/promise.js:628:18)
at Promise._resolveCallback (/Users/ruxin/website/blog/node_modules/hexo-all-minifier/node_modules/bluebird/js/release/promise.js:423:57)
at Promise._settlePromiseFromHandler (/Users/ruxin/website/blog/node_modules/hexo-all-minifier/node_modules/bluebird/js/release/promise.js:514:17)
at Promise._settlePromise (/Users/ruxin/website/blog/node_modules/hexo-all-minifier/node_modules/bluebird/js/release/promise.js:559:18)
at Promise._settlePromise0 (/Users/ruxin/website/blog/node_modules/hexo-all-minifier/node_modules/bluebird/js/release/promise.js:604:10)
at Promise._settlePromises (/Users/ruxin/website/blog/node_modules/hexo-all-minifier/node_modules/bluebird/js/release/promise.js:683:18)
at Promise._fulfill (/Users/ruxin/website/blog/node_modules/hexo-all-minifier/node_modules/bluebird/js/release/promise.js:628:18)
at /Users/ruxin/website/blog/node_modules/hexo-all-minifier/node_modules/bluebird/js/release/nodeback.js:42:21
at /Users/ruxin/website/blog/node_modules/stream-to-array/index.js:54:9
at doNTCallback0 (node.js:428:9)
at process._tickCallback (node.js:357:13)
My
_config.yml
:My
package.json
:image_minifier
Error Output:css_minifier
Error Output:I'm getting the above error when
image_minifer
is enabled and the below error when havingcss_minifier
enabled. Disabling bothimage_minifer
andcss_minifier
"removes" the errors.For the
image_minifier
error: Do I need to install a missing dependency? For thecss_minifier
error: Is this a problem caused by the theme I'm using? The error only occurs withcss_minifier
enabled.