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
@theme is an alias which is converting in rspress build process, thus allowing users to use theme component without installing the corresponding theme package.
版本信息
System: OS: Windows 11 10.0.22631 CPU: (20) x64 13th Gen Intel(R) Core(TM) i9-13900H Memory: 6.31 GB / 31.75 GB Browsers: Edge: Chromium (127.0.2651.74) Internet Explorer: 11.0.22621.3527 npmPackages: rspress: ^1.29.0 => 1.30.0
问题详情
在vscode终端中运行pnpm create rspress@latest 后,修改/docs/guide/index.md 为/docs/guide/index.mdx.
vscode提示找不到模块“@theme”或其相应的类型声明 ![image](https://github.com/user-attachments/assets/e60d2cd2-a298-41d0-a30f-0678be1d85e7)然后导入组件
import { Badge } from "@theme";
复现链接
pnpm create rspress@latest 修改md为mdx,导入rsprss内置组件
复现步骤
1.pnpm create rspress@latest
2.找个文件修改md为mdx,
3.导入rsprss内置组件
The text was updated successfully, but these errors were encountered: