Repository navigation
Conversation
`docusaurus build` failed on every page with "Hook ... is called outside the <...Provider>". The minor-and-patch bump in chamals3n4#172 moved most of the docs tree to postcss 8.5.32 but left @docusaurus/theme-classic on 8.5.31. pnpm then installed two copies of @docusaurus/core, theme-common and their plugins, one per postcss version. The theme's providers and the swizzled Navbar and Footer ended up on different copies, so React saw two separate contexts. Every package accepts postcss ^8, so postcss is now 8.5.32 throughout (also for sanitize-html, a patch release). Lockfile only; no package.json changes. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
@CJNA is attempting to deploy a commit to the chamalsena Team on Vercel. A member of the Team first needs to authorize it. |
|
Important Review skippedReview was skipped due to path filters ⛔ Files ignored due to path filters: 1
CodeRabbit blocks several paths by default. You can override this behavior by explicitly including those paths in the path filters. For example, including
|
4 tasks done
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Purpose
pnpm --filter ./docs build(docusaurus build) fails onmain. Every page, the blog and 404 included, fails with "Hook useNavbarMobileSidebar is called outside the " or "Hook useTitleFormatterContext is called outside the ". This makes the docs site build again.Approach
Cause: the minor-and-patch bump in #172 (#172) moved most of the docs tree to
postcss8.5.32 but left@docusaurus/theme-classicon 8.5.31. pnpm keys a package copy by its peer versions, so it installed two copies of@docusaurus/core,@docusaurus/theme-commonand their plugins, one perpostcssversion. The theme's providers and the swizzledNavbarandFooter(docs/src/theme/) loaded different copies, so React saw two separate contexts.Fix: every package accepts
postcss^8, so it is now 8.5.32 throughout (pnpm update -r --depth Infinity postcss). Onlypnpm-lock.yamlchanges, and nopackage.json. Two version lines change, and 490 lines of duplicate Docusaurus entries go away.I didn't use a full
pnpm dedupe: it would also have changed unrelated backend packages such asjoseandexpress-rate-limit.Side effect:
sanitize-html(job-description cleaning) moves frompostcss8.5.31 to 8.5.32, a patch release.Related issues
Checklist
pnpm testpasses locally. Backend unit tests (332), frontend tests (793), the backend build and the frontend type-check pass. I didn't run the backend integration tests locally; CI runs them.🤖 Generated with Claude Code