-
-
Notifications
You must be signed in to change notification settings - Fork 4.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Regression in Node 14 #4260
Comments
In Node.js v14 the hexo-util@ChachStream.getCache returns an empty array. Node.js v14 has many changes about stream. I think this issue caused by these changes. |
OK. I found this document transform.destroy([error])
But, hexo-util@ChachStream seems override |
I looked around the https://github.com/nodejs/node PRs, the stream changes already included on Node 13, but all hexo-related packages have no issue with it. |
#4257 This problem is also caused by v14 |
It seems that all problem is related with
|
Yes, it seems that most of the error messages come from this commit nodejs/node@a13500f#diff-0034beae2e92ed0b59570df638dda305 |
The fix has already implemented in hexojs/hexo-fs#60 |
Tests show that hexo/lib/plugins/console/generate.js Line 68 in b60f815
|
What if the following lines are removed so that |
Since the fixes won't be backported to Hexo 4, I suggest to add If user wants to go ahead with Hexo 4 + Node 14, the fix is to install hexo-util v2 and hexo-fs v3. |
However there are already many features merged into |
I met the same issue.
|
@luisleee circular dependencies are caused by stylus, not Hexo. |
When will a version compatible with node 14 release? |
I tried even with old node versions like v12 but still facing issues. Can't we release a hot fix for this? |
to show your node version. |
@yangxyo Tried both v12.5.0 and v12.16.3 as well. It generates empty files with partial template block codes. You can try https://github.com/hexojs/site |
@dumindu You can reinstall it. It can work on v12.16.3 on my machine. |
Oops, my mistake. Looks like my current issue is due to hexojs/site#1410 . Fixed. Thanks everyone :) |
Noticed this issue on my blog, Netlify doesn't upload any file after upgrading Node 14 (build log), and led to an empty site.
A working workaround is to downgrade; I downgraded to Node 12, my blog never had any issue with Node 13, so it looks like a Node 14 issue.
I can replicate this issue in hexojs/site#1395, site does become empty.
Replicated the issue in my workstation, with a dummy blog (default plugins only).
/public
folder has all the files, but they are all empty.node_modules
with Node 14, run Hexo with Node 14: ❌node_modules
with Node 13, run Hexo with Node 14: ❌node_modules
with Node 13, run Hexo with Node 13: ✅node_modules
with Node 14, run Hexo with Node 13: ✅Node 13 is v
13.13.0
, Node 14 is v14.0.0
@hexojs/core
Tested packages:
❌ hexo
❌ hexo-fs
❌ hexo-cli
✅ warehouse
✅ hexo-renderer-nunjucks
✅ hexo-renderer-marked
✅ hexo-util
✅ hexo-generator-feed.
Edit (30 April 2020): fix released in hexo-util@2.0.0 and hexo-fs@3.0.0.
There are two options to temporarily fix compatibility issues with Node 14:
.nvmrc
as part of your CI workflow, you need to change the content to10
or12
.The text was updated successfully, but these errors were encountered: