fix(website): restore Docusaurus startup with webpack 5.106#9043
Open
Eva-Dengyh wants to merge 1 commit into
Open
fix(website): restore Docusaurus startup with webpack 5.106#9043Eva-Dengyh wants to merge 1 commit into
Eva-Dengyh wants to merge 1 commit into
Conversation
Fix webpack 5.106 ProgressPlugin validation failures by pinning webpackbar to v7 and ensure local docs start/build succeeds when skills.json is missing. Align lockfiles with the repo's npm-based CI by keeping package-lock.json and dropping yarn.lock. Made-with: Cursor
19 tasks
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.
What does this PR do?
This PR fixes website startup/build issues caused by webpack 5.106 ProgressPlugin validation and aligns dependency locking with the repository's npm-based CI workflow.
Related Issue
Fixes #
Ref: facebook/docusaurus#11923
Type of Change
Changes Made
website/scripts/ensure-skills-data.mjsto createsrc/data/skills.jsonwith[]when missing (local dev/build safety guard).ensure-skills-datascript and wired it intoprestartandprebuildinwebsite/package.json.overridesforwebpackbar: ^7.0.0inwebsite/package.jsonfor webpack 5.106 compatibility.website/package-lock.jsonaccordingly.website/yarn.lockto keep lockfile strategy consistent with npm CI (npm ci).How to Test
cd websitenpm cirm -f src/data/skills.jsonnpm run buildnpm run startExpected:
ValidationError: Progress Pluginfailure.Module not foundforsrc/data/skills.json.Checklist
Code
Documentation & Housekeeping
Screenshots / Logs
npm run buildpasses with this change. Existing Docusaurus broken link/anchor warnings are pre-existing documentation issues and are outside the scope of this PR.