[已解决] 使用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
相关推荐
IT_陈寒7 小时前
Redis那个过期删除策略,差点让我线上崩了
前端·人工智能·后端
jianqiang.xue7 小时前
Espressif-IDE进入维护模式:乐鑫把ESP32开发的宝押给VS Code
前端·css·ide
特创数字科技8 小时前
纯本地离线运行的文档脱敏工具(技术分享)
前端·驱动开发·python
心之语歌8 小时前
uni-app uts原生插件开发:uts 与 Kotlin 交互踩坑实录(附解决方案)
前端·后端
再吃一根胡萝卜8 小时前
DSH 插件数据链路:Host 管数据,Client 只管画
前端
feixing_fx8 小时前
CSS 变量(Custom Properties):构建可扩展的主题切换系统
前端·css·前端框架·html·css3
十有八七9 小时前
手搓 Agent(一):先有大脑——大模型只会做一件事
前端·人工智能·后端
锋行天下10 小时前
「踩坑实录」给 LangGraph Agent 接两个 FastMCP,我被 langchain 偷偷改了工具名
前端·人工智能·后端
跳跳的小星星10 小时前
自研组件】Vue2 + ElementUI 通用列表页封装 wkjp-list-page,一套配置搞定搜索、动态表格、分页、增删改
前端
tryCbest10 小时前
Vue3—— 第 18 篇:Vue 2 到 Vue 3 迁移指南——升级避坑全记录
前端·vue.js