hexo: Warning: Accessing non-existent property 'lineno' of module exports inside circular dependency
Check List
Please check followings before submitting a new issue.
- I have already read Docs page & Troubleshooting page
- I have already searched existing issues and they are not help to me
- I examined error or warning messages and it’s difficult to solve
- Using the latest version of Hexo (run
hexo versionto check) - Node.js is higher than 8.6.0
Expected behavior
build Normal html
Actual behavior
$ 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.
How to reproduce?
- hexo clean
- hexo g
Environment & Settings
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"
}
Others
It’s build normal html when I use Node.js v12.14.1. Thanks, have a nice day.
About this issue
- Original URL
- State: closed
- Created 4 years ago
- Reactions: 3
- Comments: 15 (7 by maintainers)
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
这就是node的兼容性吗?i了i了
清净了
@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+
The discussion of
hexo-fsgoes here: https://github.com/hexojs/hexo/issues/4260 . And the fix is already implemented: https://github.com/hexojs/hexo-fs/pull/60I can confirm this compatibility issue with Node 14, being discussed in https://github.com/hexojs/hexo/issues/4260.
I can replicate this issue in default hexo.
@HyWell https://github.com/stylus/stylus/issues/2534