ValidationError: Progress Plugin crash when webpack resolves to 5.106.2
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 2/5
- Thời gian dự kiến
- 1-3 giờ
- Mức phù hợp với người mới
- 68/100
- Loại issue
- Lỗi
- Độ rõ ràng
- Đặc tả rõ ràng
- Mức độ hoạt động
- Ít trao đổi
- Công nghệ
- javascript, webpack
- Lĩnh vực
- build-system
Hướng nghiên cứu
Bắt đầu tại 10up-toolkit/scripts/build.js:30, nơi các tùy chọn của ProgressPlugin được truyền vào, và so sánh các tùy chọn đó với schema của webpack 5.106.2 được mô tả trong issue. Tái hiện với webpack 5.106.2 và xác nhận rằng build thành công mà không cần npm override, đồng thời vẫn duy trì khả năng tương thích với 5.105.2.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Describe the bug
Running 10up-toolkit build (or start) fails immediately with a ValidationError
from webpack's ProgressPlugin when npm resolves webpack to 5.106.2.
The same setup works correctly with webpack 5.105.2.
Steps to Reproduce
- Create a project with
[email protected]as the only dev dependency (no explicit webpack pin). - Run
npm install— npm resolves webpack to 5.106.2. - Run
npm run build.
Error Output
ValidationError: Invalid options object. Progress Plugin has been initialized
using an options object that does not match the API schema.
options should be one of these: object { activeModules?, dependencies?, dependenciesCount?, entries?, handler?, modules?, modulesCount?, percentBy?, profile? } | function Details:
options has an unknown property 'name'.
options has an unknown property 'color'.
options has an unknown property 'reporters'.
options has an unknown property 'reporter'.
Full stack trace points to 10up-toolkit/scripts/build.js:30.
Root Cause
webpack 5.106.2 removed the name, color, reporters, and reporter
properties from the ProgressPlugin options schema. 10up-toolkit's build
script passes an options object containing those properties, which now fails
schema validation.
Workaround
Pin webpack to 5.105.2 via npm overrides in package.json:
"overrides": {
"webpack": "5.105.2"
}
Then reinstall:
rm -rf node_modules package-lock.json && npm install
Expected Behaviour
npm run build should work with the webpack version npm resolves automatically, without requiring a manual override.
Screenshots, screen recording, code snippet
No response
Environment information
10up-toolkit: 6.5.1webpack(broken): 5.106.2webpack(working): 5.105.2- Node.js: v24.14.0
- npm: 10.x
- Device: MacBook Pro
- OS: Tahoee 26.4.1
WordPress information
No response
Code of Conduct
- I agree to follow this project's Code of Conduct
- Ngôn ngữ chính
- JavaScript
- Star
- 147
- Fork
- 21
- Chỉ số merge pull request
- Không có pull request nào được merge trong 30 ngày
Chuẩn bị môi trường
- Không có Dockerfile hay tệp Docker Compose
- Có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của 10up/10up-toolkit
-
Toolkit Future PlanningCó thể làm lại được @fabiankaegy đã nhận 190 ngày trước và không có pull request nào đang mở. Đang mở[Type] Tracking Issue
10up/10up-toolkit#489 · 7 bình luận · 2 reaction · 1 người được giao ·
-
CSS
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 58/100
10up/10up-toolkit#487 · 3 bình luận ·
-
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 45/100
10up/10up-toolkit#482 ·
-
`10up-toolkit test-unit-jest` command does not work out of the boxCó thể đã có người làm Có pull request liên kết đang mở hoặc đã được merge. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 45/100
10up/10up-toolkit#480 ·
-
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 35/100
10up/10up-toolkit#478 · 3 bình luận · 2 reaction ·
Tất cả issue của 10up/10up-toolkit
Issue tương tự
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
-
needs discussion
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
openfga/openfga.dev#1436 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 2 ngày
-
Add Aurex BrowserĐang mở
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 78/100
ImranR98/apps.obtainium.imranr.dev#2018 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 85/100
521xueweihan/HelloGitHub#4416 ·
-
type: bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
Maintainer thường phản hồi trong vòng 2 ngày