rspress
rspress copied to clipboard
[Bug]: Expected the closing tag `</a>` either before the start of `Paragraph`
Version
System:
OS: Linux 6.1 Debian GNU/Linux 11 (bullseye) 11 (bullseye)
CPU: (2) x64 AMD EPYC
Memory: 2.80 GB / 4.01 GB
Container: Yes
Shell: Unknown
npmPackages:
rspress: 2.0.0-beta.9 => 2.0.0-beta.9
Details
Repo link: https://codesandbox.io/p/devbox/amazing-hodgkin-xkx2m9
File: "/project/workspace/docs/guide/index.mdx"
Error: "219:5: Expected the closing tag `</a>` either before the start of `Paragraph` (219:1), or another opening tag after that start (mdx-jsx:end-tag-mismatch)"
File: "/project/workspace/docs/guide/index.mdx"
Error: "219:5: Expected the closing tag `</a>` either before the start of `Paragraph` (219:1), or another opening tag after that start (mdx-jsx:end-tag-mismatch)"
info Rendering pages...
error Page "/guide/test" SSG rendering failed.
TypeError: Cannot read properties of undefined (reading '__RSPRESS_PAGE_META')
error Pages render error: Cannot read properties of undefined (reading '__RSPRESS_PAGE_META')
info [Rspress v2] `ssg: true` requires the source code to support SSR. If the code is not compatible to SSR, the build process will fail. You can try:
1. Fix code to make it SSR-compatible.
2. Set `ssg: false`, but the SSG feature will be lost.
error × caused by plugins in Compilation.hooks.processAssets
╰─▶ TypeError: Cannot read properties of undefined (reading '__RSPRESS_PAGE_META')
at initPageData (/project/workspace/doc_build/rspress-ssg-entry.cjs:56094:71)
at async render (/project/workspace/doc_build/rspress-ssg-entry.cjs:56201:29)
at async file:///project/workspace/node_modules/@rspress/core/dist/index.js:1058:32
at async Promise.all (index 1)
at async renderPages (file:///project/workspace/node_modules/@rspress/core/dist/index.js:1053:9)
at async file:///project/workspace/node_modules/@rspress/core/dist/index.js:1137:21
Reproduce link
https://codesandbox.io/p/devbox/amazing-hodgkin-xkx2m9
Reproduce Steps
- npm run build
- see the terminal for error log
// guide/index.mdx
<a href="#bindshowoverlay">
</a>{" "}
log is as below
> [email protected] build /Users/bytedance/Documents/demos/rspress-2-beta-demo
> rspress build
🔥 Rspress v2.0.0-beta.9
File: "/Documents/demos/rspress-2-beta-demo/docs/guide/index.mdx"
Error: "2:1: Expected the closing tag `</a>` either before the start of `Paragraph` (2:1), or another opening tag after that start (mdx-jsx:end-tag-mismatch)"
File: "/Documents/demos/rspress-2-beta-demo/docs/guide/index.mdx"
Error: "2:1: Expected the closing tag `</a>` either before the start of `Paragraph` (2:1), or another opening tag after that start (mdx-jsx:end-tag-mismatch)"
info Rendering pages...
success Pages rendered in 166 ms.
ready built in 1.24 s (web)
ready built in 1.24 s (node)
File (node) Size Gzip
doc_build/404.html 10.6 kB 2.9 kB
doc_build/guide/index.html 12.1 kB 3.1 kB
doc_build/hello.html 12.3 kB 3.2 kB
doc_build/index.html 16.4 kB 4.0 kB
Total: 51.4 kB 13.2 kB