-
-
Notifications
You must be signed in to change notification settings - Fork 377
Description
Describe the bug
I am trying to integrate Orama Search inside a Vitepress project following the documentation of @orama/plugin-vitepress.
The plugin installs correctly and the project builds, but in the frontend the search UI never loads. Instead, I only see the text:
Loading Searchbox...
Clicking the search input does nothing.
To Reproduce
Create a new Vitepress project
Install the plugin
npm install @orama/plugin-vitepress
Add the plugin in .vitepress/config.js:
import { OramaPlugin } from "@orama/plugin-vitepress";
export default {
extends: {
vite: {
plugins: [OramaPlugin()],
},
},
};
Start the dev server
Visit the site and try interacting with the searchbox
Expected behavior
The search UI should load correctly and allow searching documentation pages.
BUT
The frontend displays: Loading Searchbox...
The search input does not react when clicked.
Environment Info
VItepress: 2.0.0-alpha.14 (but also with Vitepress 1.6.4)
Os: macOS Sonoma 14.4
Orama/plugin-vitepress: ^3.1.16
Node: 23.7.0
NPM: 10.9.2Affected areas
Search
Additional context
Warnings & Errors
Terminal output:
[vitepress] (client) Failed to load source map for
.../node_modules/@orama/searchbox/dist/index.js
Error: ENOENT: no such file or directory, open
.../node_modules/@orama/searchbox/dist/index.js.map
Browser console:
[Vue warn]: Failed to resolve component: orama-searchbox
[Vue warn]: Extraneous non-props attributes (class) were passed to component...
Uncaught (in promise) TypeError: Cannot convert undefined or null to object
