fix(theme-algolia): useDocusaurusContext import error#10382
fix(theme-algolia): useDocusaurusContext import error#10382Josh-Cena merged 10 commits intofacebook:mainfrom
Conversation
|
Please disregard the commit history that shows 2022. I used the same forked repository, which is displaying the commit history from 2 years ago. |
✅ [V2]Built without sensitive environment variables
To edit notification comments on pull requests, go to your Netlify site configuration. |
⚡️ Lighthouse report for the deploy preview of this PR
|
useDocusaurusContext Import Fix
Josh-Cena
left a comment
There was a problem hiding this comment.
Thanks😅
Our website build succeeds because we build using our own codebase which has the TS source; the E2E tests pass because they don't use the Algolia theme!
|
@anaclumos Have you tried with this fix locally to see if the website builds successfully? Just afraid there may be similar errors. |
|
Yes. I overrode the dependencies using npm workspaces with the following modifications. It successfully compiles. Here is a PoC: anaclumos/extracranial@02374fe Seems like Docusaurus 3.5 moved/repackaged some internal libraries? I had to make other fixes that I swizzled before. |
Yeah we did, which was the PR that broke this: #10316 |
|
proper fix released in v3.5.1 Let me know if this works well for you |
For when facebook/docusaurus#10382 ships in a patch release.
Motivation
After updating to Docusaurus v3.5, I got:
Which I diagnosed:
Which can be fixed with: