Please check followings before submitting a new issue.
hexo version to check)build Normal html
$ hexo clean && hexo g
(node:23020) Warning: Accessing non-existent property 'lineno' of module exports inside circular dependency
(Use `node --trace-warnings ...` to show where the warning was created)
(node:23020) Warning: Accessing non-existent property 'column' of module exports inside circular dependency
(node:23020) Warning: Accessing non-existent property 'filename' of module exports inside circular dependency
(node:23020) Warning: Accessing non-existent property 'lineno' of module exports inside circular dependency
(node:23020) Warning: Accessing non-existent property 'column' of module exports inside circular dependency
(node:23020) Warning: Accessing non-existent property 'filename' of module exports inside circular dependency
INFO Deleted database.
INFO Deleted public folder.
(node:21700) Warning: Accessing non-existent property 'lineno' of module exports inside circular dependency
(Use `node --trace-warnings ...` to show where the warning was created)
(node:21700) Warning: Accessing non-existent property 'column' of module exports inside circular dependency
(node:21700) Warning: Accessing non-existent property 'filename' of module exports inside circular dependency
(node:21700) Warning: Accessing non-existent property 'lineno' of module exports inside circular dependency
(node:21700) Warning: Accessing non-existent property 'column' of module exports inside circular dependency
(node:21700) Warning: Accessing non-existent property 'filename' of module exports inside circular dependency
INFO Start processing
INFO Files loaded in 734 ms
(node:21700) Warning: Accessing non-existent property 'lineno' of module exports inside circular dependency
(node:21700) Warning: Accessing non-existent property 'column' of module exports inside circular dependency
(node:21700) Warning: Accessing non-existent property 'filename' of module exports inside circular dependency
(node:21700) Warning: Accessing non-existent property 'lineno' of module exports inside circular dependency
(node:21700) Warning: Accessing non-existent property 'column' of module exports inside circular dependency
(node:21700) Warning: Accessing non-existent property 'filename' of module exports inside circular dependency
Build emtpy html.
It's build normal html when I use Node.js v12.14.1.
Node.js & npm version
node -v
v14.0.0
npm --v
v6.13.6
Hexo and Plugin version(npm ls --depth 0)
hexo -v
v4.2.0
Your package.json package.json
{
"name": "hexo-site",
"version": "0.0.0",
"private": true,
"hexo": {
"version": "4.2.0"
},
"dependencies": {
"hexo": "^4.2.0",
"hexo-generator-archive": "^1.0.0",
"hexo-generator-category": "^1.0.0",
"hexo-generator-feed": "^2.2.0",
"hexo-generator-index": "^1.0.0",
"hexo-generator-sitemap": "^2.0.0",
"hexo-generator-tag": "^1.0.0",
"hexo-renderer-ejs": "^1.0.0",
"hexo-renderer-marked": "^2.0.0",
"hexo-renderer-stylus": "^1.1.0",
"hexo-sage-posts": "^0.0.1",
"hexo-server": "^1.0.0"
}
It's build normal html when I use Node.js v12.14.1.
Thanks, have a nice day.
Uninstall hexo-sage-posts then try again?
Uninstall hexo-sage-posts then try again?
It's still build empty html when I uninstall hexo-sage-post plugin. Others have the same problem when used nodejs stable version (v14.0) on travis CI build task.
Please see the job log in https://www.travis-ci.org/github/AyagawaSeirin/Blog/builds/678004202 .
Thanks, have a nice day.
I can confirm this compatibility issue with Node 14, being discussed in https://github.com/hexojs/hexo/issues/4260.
Uninstall hexo-sage-posts then try again?
I can replicate this issue in default hexo.
I can confirm this compatibility issue with Node 14, being discussed in #4260.
Uninstall hexo-sage-posts then try again?
I can replicate this issue in default hexo.
It's also appear in mongodb when used Node v14, see https://jira.mongodb.org/browse/NODE-2536. And fixed on node-mongodb-native commit.
Yes, I also found this problem in Node 14, but not in Node 10 or 12.
The warning message comes from stylus
at Boolean.Node [as constructor] (/blog/node_modules/stylus/lib/nodes/node.js:44:23)
To reproduce, run const stylus = require('stylus'); with Node.js 14.0
There is no relevant issues opened here: https://github.com/stylus/stylus/issues
The warning message is from stylus
at Boolean.Node [as constructor] (/blog/node_modules/stylus/lib/nodes/node.js:44:23)To reproduce, run
const stylus = require('stylus');with Node.js 14.0There is no relevant issues opened here: https://github.com/stylus/stylus/issues
Thanks, I replicate the warning message. And build empty html which is caused by hexo-fs with Node.js 14.0
And build empty html which is caused by
hexo-fswith Node.js 14.0
The discussion of hexo-fs goes here: https://github.com/hexojs/hexo/issues/4260 . And the fix is already implemented: https://github.com/hexojs/hexo-fs/pull/60
+1
这就是node的兼容性吗?i了i了
brew uninstall node
brew install node@12
brew link --overwrite --force node@12
清净了
@vensing @wizardforcel @tl3shi
We published v4.2.1.
v4.2.1 has included fixed compatible with Node 14.
Thanks :)
@qianbinbin
Node 12: hexo 4.2.0 or less than 4.2.0
Node 14: hexo 4.2.1+
@YoshinoriN It doesn't seem to be fixed

@YoshinoriN
The problem still exists with Hexo 4.2.1:

stylus/stylus#2534
stylus/stylus#2534
stylus/stylus#2534
Most helpful comment
The warning message comes from stylus
To reproduce, run
const stylus = require('stylus');with Node.js 14.0There is no relevant issues opened here: https://github.com/stylus/stylus/issues
Update: https://github.com/stylus/stylus/issues/2534