llnancy / llnancy/hexo-theme-book

hexo g 报错 TypeError: Cannot read properties of undefined (reading 'path')

Open
#1 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Stylus
Stars
3
Forks
0
PR merge metrics
No merged PRs in 30d

Description

hexo g -d
INFO Validating config
(node:32297) [DEP0040] DeprecationWarning: The `punycode` module is deprecated. Please use a userland alternative instead.
(Use `node --trace-deprecation ...` to show where the warning was created)
INFO Start processing
FATAL Something's wrong. Maybe you can find the solution here: https://hexo.io/docs/troubleshooting.html
**TypeError: Cannot read properties of undefined (reading 'path')**
at Hexo. (/Users/zxsong/Downloads/ubuntu/blog/themes/book/scripts/render.js:52:31)
at Hexo.tryCatcher (/Users/zxsong/Downloads/ubuntu/blog/node_modules/bluebird/js/release/util.js:16:23)
at Hexo. (/Users/zxsong/Downloads/ubuntu/blog/node_modules/bluebird/js/release/method.js:15:34)
at /Users/zxsong/Downloads/ubuntu/blog/node_modules/hexo/dist/extend/filter.js:58:67
at tryCatcher (/Users/zxsong/Downloads/ubuntu/blog/node_modules/bluebird/js/release/util.js:16:23)
at Object.gotValue (/Users/zxsong/Downloads/ubuntu/blog/node_modules/bluebird/js/release/reduce.js:166:18)
at Object.gotAccum (/Users/zxsong/Downloads/ubuntu/blog/node_modules/bluebird/js/release/reduce.js:155:25)
at Object.tryCatcher (/Users/zxsong/Downloads/ubuntu/blog/node_modules/bluebird/js/release/util.js:16:23)
at Promise._settlePromiseFromHandler (/Users/zxsong/Downloads/ubuntu/blog/node_modules/bluebird/js/release/promise.js:547:31)
at Promise._settlePromise (/Users/zxsong/Downloads/ubuntu/blog/node_modules/bluebird/js/release/promise.js:604:18)
at Promise._settlePromiseCtx (/Users/zxsong/Downloads/ubuntu/blog/node_modules/bluebird/js/release/promise.js:641:10)
at _drainQueueStep (/Users/zxsong/Downloads/ubuntu/blog/node_modules/bluebird/js/release/async.js:97:12)
at _drainQueue (/Users/zxsong/Downloads/ubuntu/blog/node_modules/bluebird/js/release/async.js:86:9)
at Async._drainQueues (/Users/zxsong/Downloads/ubuntu/blog/node_modules/bluebird/js/release/async.js:102:5)
at Async.drainQueues [as _onImmediate] (/Users/zxsong/Downloads/ubuntu/blog/node_modules/bluebird/js/release/async.js:15:14)
at process.processImmediate (node:internal/timers:478:21)

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with themes/book/scripts/render.js at line 52, then reproduce the failure with `hexo g -d` and inspect the values involved when the theme render hook runs. Done means the command completes without the reported undefined `path` error; the issue does not identify a narrower expected behavior or test file.

Written by the indexing model from the issue text.

Assessment

Tech stack
node.js, stylus
Domain
frontend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.