Conversation
…或 `@rspress/core/theme` 缺少导出的报错时,原因是在 theme 文件夹下覆盖主题时没有使用 `@rspress/core/theme-original`,并附上了示例错误信息。 修改摘要: - **中文文档** (`website/docs/zh/guide/migration/rspress-v1.mdx`): 第 166-178 行 - **英文文档** (`website/docs/en/guide/migration/rspress-v1.mdx`): 第 166-178 行
✅ Deploy Preview for rspress-v2 ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
There was a problem hiding this comment.
Pull request overview
This PR adds helpful troubleshooting documentation to the Rspress v1 to v2 migration guide. It addresses common errors users encounter when migrating theme customizations, specifically when they forget to use @rspress/core/theme-original when overriding themes.
- Adds a tip box explaining errors related to missing exports from
@themeor@rspress/core/theme - Includes concrete error message examples to help users identify the issue
- Provides clear guidance on the solution
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.
| File | Description |
|---|---|
| website/docs/zh/guide/migration/rspress-v1.mdx | Adds Chinese documentation for theme-original migration errors with examples and solutions |
| website/docs/en/guide/migration/rspress-v1.mdx | Adds English documentation for theme-original migration errors with examples and solutions |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Rsdoctor Bundle Diff Analysis
Found 3 projects in monorepo, 3 projects with changes. 📊 Quick Summary
📋 Detailed Reports (Click to expand)📁 nodePath:
📦 Download Diff Report: node Bundle Diff 📁 node_mdPath:
📦 Download Diff Report: node_md Bundle Diff 📁 webPath:
📦 Download Diff Report: web Bundle Diff Generated by Rsdoctor GitHub Action |
Summary
Related Issue
Checklist
AI Summary
What changes were made
Added a troubleshooting tip to both the Chinese and English Rspress 1.x migration guide documents. The tip explains a common error that users encounter when migrating custom themes to Rspress V2.
Why they were made
When users migrate from Rspress 1.x to V2, they may encounter
ESModulesLinkingErrorerrors about missing exports (likeSvgWrapperorBanner) from@themeor@rspress/core/theme. This happens when users override the theme in thethemefolder but don't use@rspress/core/theme-originalto re-export all the original theme components.Implementation details
:::tipblock in the "Theme import paths" section of the migration guide@rspress/core/theme-originaland export all components correctlywebsite/docs/zh/guide/migration/rspress-v1.mdxandwebsite/docs/en/guide/migration/rspress-v1.mdxThis PR was written using Vibe Kanban