We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
我今天闲的慌想更新一下到最新版本,因为换仓库了,我大部分重新折腾了一下,但是遇到了remarkPluginFrontmatter这个字段的问题,
src/components/blog/Hero.astro:16:9 - error ts(2339): Property 'remarkPluginFrontmatter' does not exist on type 'RenderResult | { Content(props: Record<string, any>): AstroComponentFactory; headings: MarkdownHeading[]; }'.
但是我将hero.ASTRO中的
const { remarkPluginFrontmatter } = await render()
变成
const { remarkPluginFrontmatter } = (await render()) as { remarkPluginFrontmatter: Record<string, any>; };
好像就可以跑了
The text was updated successfully, but these errors were encountered:
@king-zhangbn 这个代码好像是预估阅读时间的,我这上次提交的时候貌似没有这个问题。是类似于“提交了一个空白文档”之类的特殊情况吗
Sorry, something went wrong.
不是,我的所有文档都是有内容的诶,我也不知道这是什么情况诶,但是现在能跑!啊哈
@king-zhangbn 因为这个项目使用typescript,所以any类型会被linter警告为 unexpected type。看来得把类型敲定。等待后续更新。
下次更新改动较大,故现有设定无法作用。不排除这里可能会出现问题。如有问题还请继续反馈。
Successfully merging a pull request may close this issue.
我今天闲的慌想更新一下到最新版本,因为换仓库了,我大部分重新折腾了一下,但是遇到了remarkPluginFrontmatter这个字段的问题,
src/components/blog/Hero.astro:16:9 - error ts(2339): Property 'remarkPluginFrontmatter' does not exist on type 'RenderResult | { Content(props: Record<string, any>): AstroComponentFactory; headings: MarkdownHeading[]; }'.
但是我将hero.ASTRO中的
变成
好像就可以跑了
The text was updated successfully, but these errors were encountered: