Git Product home page Git Product logo

Comments (9)

chenzhutian avatar chenzhutian commented on June 11, 2024 1

@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.

from hexo-all-minifier.

tiexo avatar tiexo commented on June 11, 2024

我也报错了..

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)             

from hexo-all-minifier.

imruxin avatar imruxin commented on June 11, 2024

我这边也报错了,不过我只设置了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)

from hexo-all-minifier.

tiexo avatar tiexo commented on June 11, 2024

@imruxin 我现在没用这个整合插件,分别用了三个单独的,没报错
http://www.tiexo.cn/html-css-js/

from hexo-all-minifier.

chenzhutian avatar chenzhutian commented on June 11, 2024

@tiexo @imruxin 你们两个的错可能跟nodejs的版本有关,你们用的是node5还是node6呢?

from hexo-all-minifier.

imruxin avatar imruxin commented on June 11, 2024

@unhealthy 我的是v5.0.0

from hexo-all-minifier.

tiexo avatar tiexo commented on June 11, 2024

@unhealthy 我是V5.7.0

from hexo-all-minifier.

galexrt avatar galexrt commented on June 11, 2024

Thanks for the fix! It's working now for me. :)

from hexo-all-minifier.

imruxin avatar imruxin commented on June 11, 2024

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)

from hexo-all-minifier.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.