Allow pinning react version (npm:styled-components uses a different version of npm:react)

Abierto
#2,015 1 comentario 0 reacciones 0 asignados Ver en GitHub

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
4/5
Tiempo estimado
3-5 días
Aptitud para principiantes
35/100
Tipo de issue
Nueva funcionalidad
Claridad
Bastante claro
Estado de actividad
Estancado
Stack tecnológico
react, typescript

Línea de trabajo

Start by tracing the build process that resolves the jsx configuration and npm:styled-components dependencies. Check how jsdelivr selects React versions and determine where a package-version override could be configured. Done means the build can request a specified React version without breaking existing dependency resolution, with coverage for the reported version mismatch.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

bug

I'm seeing an issue where npm:styled-components suddenly started using [email protected], which obviously doesn't work when observable is pulling in the latest version of React (19.1.1 at the moment). I think this might be a problem with jsdelivr.

In order to address problems like this (by including a static version of styled-components, for example), it would be really helpful to be able to specify which React package we want observable to use during the build process. A config option to override the default behavior, something like

{
 ...
  jsx: "[email protected]"
 ...
}
Lenguaje dominante
TypeScript
Estrellas
3.7k
Forks
210
Métricas de merge de PR
Sin PR fusionados en 30 d

Preparar el entorno

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de observablehq/framework

Todos los issues de observablehq/framework

Issues similares

Más issues de TypeScript

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.