[已解决] 使用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
相关推荐
cc_瀚海知行4 分钟前
工具调用 6|助手什么时候该停下来?
java·服务器·前端·人工智能·python·ai
溪语流沙19 分钟前
【Web全栈进阶】Nginx反向代理 + HTTPS:正式上线
前端·vue.js·python·nginx·https·fastapi
vivo互联网技术30 分钟前
域名埋点零侵入实时校验实践:基于代理转发与规则驱动的工具设计
前端·测试·监控·代理·埋点
喵个咪31 分钟前
GoWind ShortPlay 拆解:Flutter 沉浸式 Feed 的播放器工程——生命周期、手势状态机与游客降级
前端·flutter·架构
白日做梦Q31 分钟前
Chrome商店访问不了,无法现在安装插件?利用Edge商店迁移扩展完整实操教程问题背景
前端·chrome·edge
涛涛ing38 分钟前
2026年,你的前端终于不用再“算随机数”和“量高度”了
前端
用户2986985301439 分钟前
React 前端 Word 转图片:页面与元素级导出的工程实践
前端·javascript·react.js
彭亚川Allen1 小时前
从零手搓 RAG 之分块策略
前端·后端·面试