You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
But when building (hexo g), I encounter those warnings:
Error: Inferno Error: normalization received an object that's not a valid VNode, you should stringify it first or fix createVNode flags. Object: "{"name":"noraj (Alexandre ZANNI)","about":"Cybersecurity engineer &
Pentester","id":"noraj","source":"_authors/noraj.yml","_id":"clqbh783u02knuslk9yo4dxrj"}".
at throwError (/home/noraj/Dev/Rawsec-website/node_modules/inferno/dist/index.cjs.js:36:11)
at throwIfObjectIsNotVNode (/home/noraj/Dev/Rawsec-website/node_modules/inferno/dist/index.cjs.js:367:9)
at normalizeChildren (/home/noraj/Dev/Rawsec-website/node_modules/inferno/dist/index.cjs.js:617:21)
at createVNode (/home/noraj/Dev/Rawsec-website/node_modules/inferno/dist/index.cjs.js:398:9)
at _class.render (/home/noraj/Dev/Rawsec-website/node_modules/hexo-theme-icarus/layout/common/article.jsx:58:41)
at renderVNodeToString (/home/noraj/Dev/Rawsec-website/node_modules/inferno-server/dist/index.cjs.js:210:41)
at renderVNodeToString (/home/noraj/Dev/Rawsec-website/node_modules/inferno-server/dist/index.cjs.js:337:37)
at renderVNodeToString (/home/noraj/Dev/Rawsec-website/node_modules/inferno-server/dist/index.cjs.js:221:20)
at renderToString (/home/noraj/Dev/Rawsec-website/node_modules/inferno-server/dist/index.cjs.js:356:12)
at /home/noraj/Dev/Rawsec-website/node_modules/hexo-renderer-inferno/lib/compile.js:37:20
at _View._compiled (/home/noraj/Dev/Rawsec-website/node_modules/hexo/lib/theme/view.ts:151:50)
at _View.render (/home/noraj/Dev/Rawsec-website/node_modules/hexo/lib/theme/view.ts:54:17)
at /home/noraj/Dev/Rawsec-website/node_modules/hexo/lib/hexo/index.ts:77:21
at tryCatcher (/home/noraj/Dev/Rawsec-website/node_modules/bluebird/js/release/util.js:16:23)
at /home/noraj/Dev/Rawsec-website/node_modules/bluebird/js/release/method.js:15:34
at RouteStream._read (/home/noraj/Dev/Rawsec-website/node_modules/hexo/lib/hexo/router.ts:60:5)
at RouteStream.Readable.read (node:internal/streams/readable:737:12)
at resume_ (node:internal/streams/readable:1255:12)
at processTicksAndRejections (node:internal/process/task_queues:82:21)
That becomes an error when serving (hexo s)
Unhandled rejection Error: Inferno Error: normalization received an object that's not a valid VNode, you should stringify it first or fix createVNode flags. Object: "{"name":"noraj (Alexandre ZANNI)","about":"Cybersecurity engineer & Pentester","id":"noraj","source":"_authors/noraj.yml","_id":"clqbh783u02knuslk9yo4dxrj"}".
at throwError (/home/noraj/Dev/Rawsec-website/node_modules/inferno/dist/index.cjs.js:36:11)
at throwIfObjectIsNotVNode (/home/noraj/Dev/Rawsec-website/node_modules/inferno/dist/index.cjs.js:367:9)
at normalizeChildren (/home/noraj/Dev/Rawsec-website/node_modules/inferno/dist/index.cjs.js:617:21)
at createVNode (/home/noraj/Dev/Rawsec-website/node_modules/inferno/dist/index.cjs.js:398:9)
at _class.render (/home/noraj/Dev/Rawsec-website/node_modules/hexo-theme-icarus/layout/common/article.jsx:58:41)
at renderVNodeToString (/home/noraj/Dev/Rawsec-website/node_modules/inferno-server/dist/index.cjs.js:210:41)
at renderVNodeToString (/home/noraj/Dev/Rawsec-website/node_modules/inferno-server/dist/index.cjs.js:221:20)
at renderToString (/home/noraj/Dev/Rawsec-website/node_modules/inferno-server/dist/index.cjs.js:356:12)
at /home/noraj/Dev/Rawsec-website/node_modules/hexo-renderer-inferno/lib/compile.js:37:20
at _View._compiled (/home/noraj/Dev/Rawsec-website/node_modules/hexo/lib/theme/view.ts:151:50)
at _View.render (/home/noraj/Dev/Rawsec-website/node_modules/hexo/lib/theme/view.ts:54:17)
at /home/noraj/Dev/Rawsec-website/node_modules/hexo/lib/hexo/index.ts:77:21
at tryCatcher (/home/noraj/Dev/Rawsec-website/node_modules/bluebird/js/release/util.js:16:23)
at /home/noraj/Dev/Rawsec-website/node_modules/bluebird/js/release/method.js:15:34
at RouteStream._read (/home/noraj/Dev/Rawsec-website/node_modules/hexo/lib/hexo/router.ts:60:5)
at RouteStream.Readable.read (node:internal/streams/readable:737:12)
at resume_ (node:internal/streams/readable:1255:12)
at processTicksAndRejections (node:internal/process/task_queues:82:21)
System and Environment
Hexo, OS, and node version
hexo: 7.0.0
hexo-cli: 4.3.1
os: linux 6.6.7-arch1-1 Arch Linux
node: 21.4.0
Site configuration file _config.yml N/A
Theme configuration file _config.icarus.yml or themes/icarus/_config.yml N/A (default)
Any additional theme configuration files (post front-matter, _config.post.yml, or _config.page.yml) N/A
Browser and version (e.g., Firefox 70.0, Chrome Android 80.0) N/A
Copy whatever YAML files in the source folder, e.g., cp _config.landscape.yml source/landscape.yml
hexo g && hexo s
Note: With this minimal reproduction steps, I have a different error:
FATAL Something's wrong. Maybe you can find the solution here: https://hexo.io/docs/troubleshooting.html
TypeError: Cannot read properties of undefined (reading 'toString')
at toString (/tmp/toto/node_modules/hexo/lib/hexo/render.ts:22:21)
at /tmp/toto/node_modules/hexo/lib/hexo/render.ts:87:16
at tryCatcher (/tmp/toto/node_modules/bluebird/js/release/util.js:16:23)
at Promise._settlePromiseFromHandler (/tmp/toto/node_modules/bluebird/js/release/promise.js:547:31)
at Promise._settlePromise (/tmp/toto/node_modules/bluebird/js/release/promise.js:604:18)
at Promise._settlePromise0 (/tmp/toto/node_modules/bluebird/js/release/promise.js:649:10)
at Promise._settlePromises (/tmp/toto/node_modules/bluebird/js/release/promise.js:729:18)
at _drainQueueStep (/tmp/toto/node_modules/bluebird/js/release/async.js:93:12)
at _drainQueue (/tmp/toto/node_modules/bluebird/js/release/async.js:86:9)
at Async._drainQueues (/tmp/toto/node_modules/bluebird/js/release/async.js:102:5)
at Immediate.Async.drainQueues [as _onImmediate] (/tmp/toto/node_modules/bluebird/js/release/async.js:15:14)
at processImmediate (node:internal/timers:478:21)
Note2: Copying noraj.yml instead generates no error and YAML files are converted to JSON instead.
Expected behavior
YAML files would be ignored by hexo-renderer-inferno.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
Describe the bug
I have YAML files in
source/
, e.g.,source/_authors/noraj.yml
used for hexo-multiauthorBut when building (
hexo g
), I encounter those warnings:That becomes an error when serving (
hexo s
)System and Environment
_config.yml
N/A_config.icarus.yml
orthemes/icarus/_config.yml
N/A (default)_config.post.yml
, or_config.page.yml
) N/ATo Reproduce
cd
into empty folderhexo init
npm install -S hexo-theme-icarus hexo-renderer-inferno
hexo config theme icarus
cp _config.landscape.yml source/landscape.yml
hexo g && hexo s
Note: With this minimal reproduction steps, I have a different error:
Note2: Copying noraj.yml instead generates no error and YAML files are converted to JSON instead.
Expected behavior
YAML files would be ignored by
hexo-renderer-inferno
.Screenshots
N/A
Additional context
package.json
The text was updated successfully, but these errors were encountered: