Open 2290774104 opened 5 months ago
A reproduction is required as everything is working fine in https://innenu.com/
Hello @2290774104. Please provide a minimal reproduction using a GitHub repository or vuepress-theme-hope.github.io/v2-new. Issues marked with needs reproduction
will be closed if they have no activity within 3 days.
same problem
I created a new repository for reproducing:https://github.com/2290774104/vuepress-theme-hope_search-demo.git
This issue is marked as stale
because it has not had recent activity. Issues marked with stale
will be closed if they have no activity within 3 days.
This issue is marked as stale
because it has not had recent activity. Issues marked with stale
will be closed if they have no activity within 3 days.
This issue is marked as stale
because it has not had recent activity. Issues marked with stale
will be closed if they have no activity within 3 days.
Just some update I am busy with my other project and also a lot of things happened in my real life. One of my family members just passed away in last month and I had to work on some other important things.
I would likely to review this issue once I'm spare again, But i am afraid that the time table will be no longer early then October this year.
So if anyone wants to have a look at this issue, further Information about this is welcome in this thread
我提供一些我发现的线索吧,希望能够有所帮助。
config.ts
,也是不行的。indexContent: true
,也是不行的。Uncaught Error: SlimSearch: cannot deserialize an index created with an incompatible version
at zt (search-pro.worker.js:1:12257)
at search-pro.worker.js:1:173726
at Array.map (<anonymous>)
at search-pro.worker.js:1:173710
断点了一下看对应的位置,c
值为undefined
const zt = ({index: e, documentCount: t, nextId: s, documentIds: n, fieldIds: o, fieldLength: u, averageFieldLength: i, storedFields: r, dirtCount: d, serializationVersion: c}, a) => {
if (c !== 1 && c !== 2)
throw new Error("SlimSearch: cannot deserialize an index created with an incompatible version");
const h = new Et(a);
不知是否有所帮助。
Checklist
Package name
vuepress-theme-hope
Which operating system are you using?
Describe the bug
使用文档提供的命令创建项目后,在
theme.ts
中的 searchPro 配置indexContent: true
时,搜索中文会导致页面报错,但config.ts
中配置则可以正常搜索这是在
theme.ts
中配置后搜索出现的错误这是在
config.ts
中配置的搜索成功Additional context
开发环境: node v18.20.3 npm 10.7.0 pnpm 9.4.0 项目依赖版本 "@vuepress/bundler-vite": "2.0.0-rc.14", "vue": "^3.4.27", "vuepress": "2.0.0-rc.14", "vuepress-plugin-search-pro": "2.0.0-rc.50", "vuepress-theme-hope": "2.0.0-rc.50"