Skip to content
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

RangeError: Maximum call stack size exceeded #310

Open
6 tasks done
D-Sketon opened this issue Jan 12, 2025 · 1 comment
Open
6 tasks done

RangeError: Maximum call stack size exceeded #310

D-Sketon opened this issue Jan 12, 2025 · 1 comment

Comments

@D-Sketon
Copy link
Member

Check List

  • I have already read README.
  • 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.
  • I am using the latest version of this repository.
  • I am using the latest version of Hexo.
  • My Node.js is matched the required version.

Describe the bug

use [email protected]
{6CD56DEB-D437-42CB-8318-06E1AB617670}

Expected behavior

hexo-renderer-marked@6 does not give this error

How to reproduce

  1. hexo init
  2. use https://github.com/hexojs/hexo-many-posts and copy 8 times
  3. hexo g

Screenshots

No response

Environment information

No response

Additional context

No response

@uiolee
Copy link
Member

uiolee commented Jan 14, 2025

hexo-many-posts*7:

INFO  Validating config
INFO  Start processing
FATAL Something's wrong. Maybe you can find the solution here: https://hexo.io/docs/troubleshooting.html
Template render error: (unknown path)
  RangeError: Maximum call stack size exceeded
Please report this to https://github.com/markedjs/marked.
    at Object._prettifyError (D:\hexo-starter\node_modules\.pnpm\[email protected][email protected]\node_modules\nunjucks\src\lib.js:32:11)
    at D:\hexo-starter\node_modules\.pnpm\[email protected][email protected]\node_modules\nunjucks\src\environment.js:464:19
    at Template.root [as rootRenderFunc] (eval at _compile (D:\hexo-starter\node_modules\.pnpm\[email protected][email protected]\node_modules\nunjucks\src\environment.js:527:18), <anonymous>:42:3)
    at Template.render (D:\hexo-starter\node_modules\.pnpm\[email protected][email protected]\node_modules\nunjucks\src\environment.js:454:10)
    at Environment.renderString (D:\hexo-starter\node_modules\.pnpm\[email protected][email protected]\node_modules\nunjucks\src\environment.js:313:17)
    at D:\hexo-starter\node_modules\.pnpm\[email protected][email protected]\node_modules\hexo\dist\extend\tag.js:206:22
    at tryCatcher (D:\hexo-starter\node_modules\.pnpm\[email protected]\node_modules\bluebird\js\release\util.js:16:23)
    at Promise.fromNode.Promise.fromCallback (D:\hexo-starter\node_modules\.pnpm\[email protected]\node_modules\bluebird\js\release\promise.js:209:30)
    at Tag.render (D:\hexo-starter\node_modules\.pnpm\[email protected][email protected]\node_modules\hexo\dist\extend\tag.js:205:35)
    at Object.onRenderEnd (D:\hexo-starter\node_modules\.pnpm\[email protected][email protected]\node_modules\hexo\dist\hexo\post.js:399:32)
    at D:\hexo-starter\node_modules\.pnpm\[email protected][email protected]\node_modules\hexo\dist\hexo\render.js:77:29
    at tryCatcher (D:\hexo-starter\node_modules\.pnpm\[email protected]\node_modules\bluebird\js\release\util.js:16:23)
    at Promise._settlePromiseFromHandler (D:\hexo-starter\node_modules\.pnpm\[email protected]\node_modules\bluebird\js\release\promise.js:547:31)
    at Promise._settlePromise (D:\hexo-starter\node_modules\.pnpm\[email protected]\node_modules\bluebird\js\release\promise.js:604:18)
    at Promise._settlePromise0 (D:\hexo-starter\node_modules\.pnpm\[email protected]\node_modules\bluebird\js\release\promise.js:649:10)
    at Promise._settlePromises (D:\hexo-starter\node_modules\.pnpm\[email protected]\node_modules\bluebird\js\release\promise.js:729:18)


Maybe related to Nunjucks. After setting marked.disableNunjucks=true, no error occurred in the case of hexo-many-posts*10

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants