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
When I try to run npm run build i.e. rspress build in my documentation directory I see:
(base) hayzam@hayzam-pc ~/Documents/bad_doc/panic $ RUST_BACKTRACE=full npm run build
> [email protected] build
> rspress build
🔥 Rspress v1.27.0
thread '<unnamed>' panicked at /usr/local/cargo/registry/src/index.crates.io-6f17d22bba15001f/markdown-1.0.0-alpha.16/src/construct/document.rs:567:77:
index out of bounds: the len is 2 but the index is 2
stack backtrace:
0: 0x7f7c5abdbfdc - <unknown>
1: 0x7f7c5ac02b9c - <unknown>
2: 0x7f7c5abd994e - <unknown>
3: 0x7f7c5abdbdc4 - <unknown>
4: 0x7f7c5abdd043 - <unknown>
5: 0x7f7c5abdcd64 - <unknown>
6: 0x7f7c5abdd5c5 - <unknown>
7: 0x7f7c5abdd4c1 - <unknown>
8: 0x7f7c5abdc506 - <unknown>
9: 0x7f7c5abdd212 - <unknown>
10: 0x7f7c5a892255 - <unknown>
11: 0x7f7c5a892412 - <unknown>
12: 0x7f7c5abab0d2 - <unknown>
13: 0x7f7c5abbed12 - <unknown>
14: 0x7f7c5ab9bebd - <unknown>
15: 0x7f7c5ab9b480 - <unknown>
16: 0x7f7c5ab9a364 - <unknown>
17: 0x7f7c5ab8cef9 - <unknown>
18: 0x7f7c5a8b47a3 - <unknown>
19: 0x7f7c5a893462 - <unknown>
20: 0xc78a49 - _ZZN4node14ThreadPoolWork12ScheduleWorkEvENUlP9uv_work_sE_4_FUNES2_
21: 0x18ab5b0 - worker
at /home/iojs/build/ws/out/../deps/uv/src/threadpool.c:122:5
22: 0x7f7c89aa8134 - start_thread
at ./nptl/pthread_create.c:442:8
23: 0x7f7c89b287dc - __GI___clone3
at ./misc/../sysdeps/unix/sysv/linux/x86_64/clone3.S:81
24: 0x0 - <unknown>
fatal runtime error: failed to initiate panic, error 5
Aborted
(base) hayzam@hayzam-pc ~/Documents/bad_doc/panic $
panic.zip -> This is the zip of my project (without node_modules)
We're working on a CMS and recently migrated from Docusaurus. All the files in the folder inside the zip is auto generated from a DB, it could be that I'm doing something wrong in the files but in any case a panic doesn't sound good?
I figured the issue out (it was that I was referencing stuff that wasn't available in the index.md file), once I took care of that the panic went away.
yeah, I also solved this by modifying docs/1.0.0/index.mdx
---pageType: homehero:
name: Kalmiatext: Fast, easy-to-use CMS for your documentationstagline: Taglineactions:
- theme: brandtext: Quick Startlink: /guide/
- theme: alttext: GitHublink: https://github.com/web-infra-dev/rspressimage:
src: /rspress-icon.pngalt: Rspress Logofeatures:
- title: Blazing fast build speeddetails: The core compilation module is based on the Rust front-end toolchain, providing a more ultimate development experience.icon: 🏃🏻♀️
- title: Support for MDX content writingdetails: MDX is a powerful way to write content, allowing you to use React components in Markdown.icon: 📦
- title: Built-in full-text searchdetails: Automatically generates a full-text search index for you during construction, providing out-of-the-box full-text search capabilities.icon: 🎨
- title: Simpler I18n solutiondetails: With the built-in I18n solution, you can easily provide multi-language support for documents or components.icon: 🌍
- title: Static site generationdetails: In production, it automatically builds into static HTML files, which can be easily deployed anywhere.icon: 🌈
- title: Providing multiple custom capabilitiesdetails: Through its extension mechanism, you can easily extend theme UI and build process.icon: 🔥---
this is an error from markdown-rs imported from mdx-rs, your markdown did not follow the grammar, resulting in parsing errors.
Version
System: OS: Linux 6.1 Debian GNU/Linux 12 (bookworm) 12 (bookworm) CPU: (16) x64 AMD Ryzen 7 5800X 8-Core Processor Memory: 7.00 GB / 31.25 GB Container: Yes Shell: 5.2.15 - /usr/bin/bash Browsers: Chrome: 127.0.6533.88 npmPackages: rspress: ^1.27.0 => 1.27.0
Details
When I try to run
npm run build
i.e.rspress build
in my documentation directory I see:panic.zip -> This is the zip of my project (without node_modules)
We're working on a CMS and recently migrated from Docusaurus. All the files in the folder inside the zip is auto generated from a DB, it could be that I'm doing something wrong in the files but in any case a panic doesn't sound good?
Reproduce link
https://github.com/user-attachments/files/16529114/panic.zip
Reproduce Steps
Run
npm install
andnpm run build
and you ideally should see the error described in details.The text was updated successfully, but these errors were encountered: