🌌 A complete search engine and RAG pipeline in your browser, server or edge network with support for full-text, vector, and hybrid search in less than 2kb.
After installing the plugin, the message 'Loading Searchbox...' appears in the Searchbox component and does nothing
function loadRadixNode(node) {
const convertedNode = radix_create(node.e, node.s, node.k);
convertedNode.d = node.d;
convertedNode.w = node.w;
for (const childrenKey of Object.keys(node.c)){
convertedNode.c[childrenKey] = loadRadixNode(node.c[childrenKey]);
}
return convertedNode;
}
Runtime error occurs when node.c is undefined in the above function
When running with pnpm docs:dev, the following log occurs on CLI
6:14:24 PM [vitepress] Failed to load source map for /Users/my-mac/development/my-proj/node_modules/.pnpm/@orama+searchbox@1.0.0-beta.13_@orama+highlight@0.1.8_@orama+orama@3.0.1_@oramacloud+client@1_cv3rpvjpwmenn6erd35pvfjqx4/node_modules/@orama/searchbox/dist/index.js.
Error: An error occurred while trying to read the map file at index.js.map
Error: ENOENT: no such file or directory, open '/Users/my-mac/development/my-proj/node_modules/.pnpm/@orama+searchbox@1.0.0-beta.13_@orama+highlight@0.1.8_@orama+orama@3.0.1_@oramacloud+client@1_cv3rpvjpwmenn6erd35pvfjqx4/node_modules/@orama/searchbox/dist/index.js.map'
To Reproduce
create new index
import @orama/plugin-vitpress on vitepress project
Describe the bug
After installing the plugin, the message 'Loading Searchbox...' appears in the Searchbox component and does nothing
Runtime error occurs when
node.c
is undefined in the above functionpnpm docs:dev
, the following log occurs on CLITo Reproduce
@orama/plugin-vitpress
on vitepress projectExpected behavior
Should be searched normally
Environment Info
Affected areas
Search
Additional context
I tried it with yarn, but the same symptoms happened