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

点赞(0) 打赏

评论列表 共有 0 条评论

暂无评论

微信公众账号

微信扫一扫加关注

发表
评论
返回
顶部