[已解决] 使用vuepress-plugin-search-pro时编译出错Error: SlimSearch: duplicate ID

vuepress-plugin-search-pro

在处理 vuepress 的 .md 文件时,如果 frontmatter 部分内容重复可能会导致编译出错 ,如Error: SlimSearch: duplicate ID xx

在本例中,是由于失误导致两个文件的 abbrlink 值一样,从而导致此错误,修改其中一个后恢复正常。

复制代码
⠙ Initializing and preparing dataerror error in hook onInitialized from vuepress-plugin-search-pro
✖ Initializing and preparing data - failed in 4.68s
Error: SlimSearch: duplicate ID xx
    at T (file:///Users/uername/dev/project/node_modules/.pnpm/slimsearch@2.1.1/node_modules/slimsearch/dist/index.mjs:1:8048)
    at L (file:///Users/uername/dev/project/node_modules/.pnpm/slimsearch@2.1.1/node_modules/slimsearch/dist/index.mjs:1:8394)
    at file:///Users/uername/dev/project/node_modules/.pnpm/slimsearch@2.1.1/node_modules/slimsearch/dist/index.mjs:1:8631
    at async file:///Users/uername/dev/project/node_modules/.pnpm/vuepress-plugin-search-pro@2.0.0-rc.47_vuepress@2.0.0-rc.12/node_modules/vuepress-plugin-search-pro/lib/node/index.js:1:2828
    at async Promise.all (index 0)
    at async re (file:///Users/uername/dev/project/node_modules/.pnpm/vuepress-plugin-search-pro@2.0.0-rc.47_vuepress@2.0.0-rc.12/node_modules/vuepress-plugin-search-pro/lib/node/index.js:1:2707)
    at async Object.onInitialized [as hook] (file:///Users/uername/dev/project/node_modules/.pnpm/vuepress-plugin-search-pro@2.0.0-rc.47_vuepress@2.0.0-rc.12/node_modules/vuepress-plugin-search-pro/lib/node/index.js:4:1049)
    at async Object.process (file:///Users/uername/dev/project/node_odules/.pnpm/@vuepress+core@2.0.0-rc.12/node_modules/@vuepress/core/dist/index.js:646:26)
    at async appInit (file:///Users/uername/dev/project/node_modules/.pnpm/@vuepress+core@2.0.0-rc.12/node_modules/@vuepress/core/dist/index.js:571:3)
    at async file:///Users/uername/dev/project/node_modules/.pnpm/@vuepress+cli@2.0.0-rc.12/node_modules/@vuepress/cli/dist/index.js:469:7
相关推荐
盛夏绽放5 分钟前
接口验证机制在Token认证中的关键作用与优化实践
前端·node.js·有问必答
zhangxingchao21 分钟前
Jetpack Compose 之 Modifier(中)
前端
JarvanMo21 分钟前
理解 Flutter 中 GoRouter 的context.push与context.go
前端
pe7er27 分钟前
使用 Vue 官方脚手架创建项目时遇到 Node 18 报错问题的排查与解决
前端·javascript·vue.js
星始流年31 分钟前
前端视角下认识AI Agent
前端·agent·ai编程
pe7er34 分钟前
使用 types / typings 实现全局 TypeScript 类型定义,无需 import/export
前端·javascript·vue.js
CH_Qing35 分钟前
【udev】关于/dev 设备节点的生成 &udev
linux·前端·网络
小诸葛的博客40 分钟前
gin如何返回html
前端·html·gin
islandzzzz1 小时前
(第二篇)HMTL+CSS+JS-新手小白循序渐进案例入门
前端·javascript·css·html
喝拿铁写前端1 小时前
前端实战优化:在中后台系统中用语义化映射替代 if-else,告别魔法数字的心智负担
前端·javascript·架构