You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add workaround for JSR package import path issues and update dependencies
- Document known issues with `@logan/libsql-search` and `@logan/logger` JSR packages, including incorrect relative import paths.
- Implement Vite plugin `fixJSRImports()` in `astro.config.mjs` to correct paths at build time.
- Update dependencies to include relevant packages: `@google/generative-ai`, `openai`, and `winston`.
- Modify `CLAUDE.md` to include details about the workaround and potential permanent fixes.
Copy file name to clipboardExpand all lines: CLAUDE.md
+17-1Lines changed: 17 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -188,4 +188,20 @@ The default build uses the Node.js adapter for maximum compatibility with tradit
188
188
### Deployment Requirements
189
189
-**Always run**`pnpm index` (or `pnpm index:local` for testing) before deploying to ensure content is indexed
190
190
- Set environment variables (`TURSO_DB_URL`, `TURSO_AUTH_TOKEN`, etc.) in your deployment platform
191
-
- Both adapters support the same features; choose based on deployment target
191
+
- Both adapters support the same features; choose based on deployment target
192
+
193
+
### Known Issues & Workarounds
194
+
195
+
**JSR Package Import Paths**: The JSR-published versions of `@logan/libsql-search` and `@logan/logger` have incorrect relative import paths (e.g., `./@google/generative-ai` instead of `@google/generative-ai`).
196
+
197
+
**Workaround in astro.config.mjs**:
198
+
- Custom Vite plugin `fixJSRImports()` corrects these paths at build time (lines 19-37)
199
+
- Required dependencies: `@google/generative-ai`, `openai`, `winston` (installed in package.json)
200
+
201
+
**Permanent Fix Needed**:
202
+
Update the source packages to use correct import paths:
0 commit comments