upgrade: upstream CSS codemods parse stylesheets as JS
Los mantenedores suelen responder en 1 día
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 3/5
- Tiempo estimado
- Medio día
- Aptitud para principiantes
- 66/100
- Tipo de issue
- Error
- Claridad
- Bien especificado
- Estado de actividad
- Activo
- Stack tecnológico
- css, typescript
Línea de trabajo
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.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
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.
- Lenguaje dominante
- TypeScript
- Estrellas
- 2
- Forks
- 0
- Merge medio
- 1 d 16 h
- PR fusionados (30 d)
- 34
Preparar el entorno
- Sin Dockerfile ni archivo de Docker Compose
- Sin plantilla de pull request
- Leer la guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de lablup/ui-common
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 66/100
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
Los mantenedores suelen responder en 1 día
-
Dificultad 3/5 1-2 días Aptitud para principiantes 58/100
Los mantenedores suelen responder en 1 día
-
Stat: add a tooltip prop that explains the deltaPosiblemente ocupada @lablup-octodog la tomó hace 2 días. Abiertofrontdesk
Dificultad 4/5 3-5 días Aptitud para principiantes 25/100
lablup/ui-common#112 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
Stat: add a tooltip that explains the deltaPosiblemente ocupada @agatha197 la tomó hace 2 días. Abierto
lablup/ui-common#110 · 1 asignado ·
Los mantenedores suelen responder en 1 día
Todos los issues de lablup/ui-common
Issues similares
-
bug
Dificultad 1/5 Menos de una hora Aptitud para principiantes 86/100
awslabs/visual-asset-management-system#937 ·
Los mantenedores suelen responder en 1 día
-
t0ggles
Dificultad 1/5 Menos de una hora Aptitud para principiantes 82/100
nolimits4web/swiper#8255 · 1 comentario ·
Los mantenedores suelen responder en 15 días
-
render: --variables-file (and --variables <path>) fails with "io.readFile is not a function" since 0.8.212Posiblemente ocupada @miguel-heygen la tomó hoy. Abiertobug triage/needs-triage
Dificultad 2/5 1-3 horas Aptitud para principiantes 76/100
heygen-com/hyperframes#6830 ·
Los mantenedores suelen responder en 1 día
-
bug launch local use
Dificultad 2/5 1-3 horas Aptitud para principiantes 65/100
Los mantenedores suelen responder en 1 día
-
account: profile bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
Los mantenedores suelen responder en 5 días