upgrade: upstream CSS codemods parse stylesheets as JS
Maintainer thường phản hồi trong vòng 1 ngày
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 3/5
- Thời gian dự kiến
- Nửa ngày
- Mức phù hợp với người mới
- 66/100
- Loại issue
- Lỗi
- Độ rõ ràng
- Đặc tả rõ ràng
- Mức độ hoạt động
- Sôi nổi
- Công nghệ
- css, typescript
Hướng nghiên cứu
Start in packages/cli/codemods/upstream.mjs at wrapAstryxTransform, and check how it picks the parser for each file. The bug is that .css files reach the jscodeshift parser instead of the transform's postcss path. Reproduce by running the migrate-deprecated-theme-surface codemod over a stylesheet with an @layer rule. Done when CSS files are transformed without parse errors and JS/TS files still use the jscodeshift path.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
ui-common upgrade --from 0.2.0-alpha.18 (CLI 0.2.0-alpha.19) runs Astryx's migrate-deprecated-theme-surface codemod over .css files as if they were JS, and every stylesheet fails:
src/index.css (astryx:migrate-deprecated-theme-surface): produced unparseable output, not applied: Leading decorators must be attached to a class declaration. (19:7)
src/components/BAISider.css (astryx:migrate-deprecated-theme-surface): produced unparseable output, not applied: Unexpected token (12:0)
The @layer at-rule is read as a decorator. Running the same codemod with Astryx's own CLI (ui-common astryx upgrade --from 0.6.5 --path src) transforms those files through postcss, so the problem is in how packages/cli/codemods/upstream.mjs wraps an Astryx transform (wrapAstryxTransform): a CSS file should reach the transform's postcss path, not the jscodeshift parser.
Seen while moving backend.ai-webui to alpha.19 (lablup/backend.ai-webui#10327). Note also that Astryx's postcss path rewrites <style> inside CSS comments to \3c style>, so a consumer should review that diff either way.
- Ngôn ngữ chính
- TypeScript
- Star
- 2
- Fork
- 0
- Merge trung bình
- 1 ngày 17 giờ
- Pull request đã merge (30 ngày)
- 32
Chuẩn bị môi trường
- Không có Dockerfile hay tệp Docker Compose
- Không 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 lablup/ui-common
-
DoubleBadge: draw its own divider instead of relying on badge bordersCó thể đã có người làm @lablup-octodog đã nhận 1 ngày trước. Đang mởfrontdesk
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 65/100
lablup/ui-common#118 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 66/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ 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 1 ngày
-
Stat: add a tooltip prop that explains the deltaCó thể đã có người làm @lablup-octodog đã nhận 1 ngày trước. Đang mởfrontdesk
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 25/100
lablup/ui-common#112 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Stat: add a tooltip that explains the deltaCó thể đã có người làm @agatha197 đã nhận 1 ngày trước. Đang mở
lablup/ui-common#110 · 1 người được giao ·
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của lablup/ui-common
Issue tương tự
-
Độ khó 1/5 1-3 giờ Mức phù hợp với người mới 66/100
Maintainer thường phản hồi trong vòng 1 ngày
-
area:plugins area:security area:skills bug has repro
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
anthropics/claude-code#105911 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
[ko] Translate /team into KoreanĐang mởdocumentation good first issue help wanted
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 74/100
dev-five-git/devup-ui#879 ·
Maintainer thường phản hồi trong vòng 11 ngày
-
openspec-apply-change skill: when blocked, may select a ready artifact unrelated to missingArtifactsĐang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
Fission-AI/OpenSpec#2165 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
🐞 bug 🧐 unconfirmed
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 66/100
Tencent/tdesign-vue-next#7032 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày