Comments (9)
@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.
我也报错了..
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.
我这边也报错了,不过我只设置了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.
@imruxin 我现在没用这个整合插件,分别用了三个单独的,没报错
http://www.tiexo.cn/html-css-js/
from hexo-all-minifier.
@tiexo @imruxin 你们两个的错可能跟nodejs的版本有关,你们用的是node5还是node6呢?
from hexo-all-minifier.
@unhealthy 我的是v5.0.0
from hexo-all-minifier.
@unhealthy 我是V5.7.0
from hexo-all-minifier.
Thanks for the fix! It's working now for me. :)
from hexo-all-minifier.
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)
- Can't install? HOT 4
- path is undefined
- cjpeg error? HOT 4
- Excellent repo, but too slow to compressing many images HOT 2
- Cannot minify the js with the lastest node version
- npm WARN deprecated HOT 1
- Can't apply image_minifier HOT 1
- Random Error: "MaxBufferError: stdout maxBuffer exceeded"
- Update dependencies
- err:Error:Command failed with exit code3221225781:E\hexo\node_modules\mozjpeg\vendor\cjpeg.exe-baseline HOT 1
- install error
- issue: hexo-all-minifier
- Run only when generating HOT 1
- Option for minified CSS path?
- An in-range update of html-minifier is breaking the build 🚨 HOT 1
- Didn't install HOT 4
- Error: write EOF HOT 2
- Using image_minifier will cause the local service to fail
- Bug: 当js_concator.front选项启用时,没有指向绝对路径
- When js_concator is enabled, the HTML in the code block is displayed incorrectly HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from hexo-all-minifier.