Hacktoberfest 2026: los issues que los mantenedores marcaron para octubre, abiertos y aptos para principiantes. Explorar issues de Hacktoberfest

[Bug] sanitizeCatalogImageUrl is missing from the published declaration bundle

Cerrado Apto para principiantes
#1,851 0 comentarios 0 reacciones 0 asignados Ver en GitHub

Los mantenedores suelen responder en 1 día

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
1/5
Tiempo estimado
Menos de una hora
Aptitud para principiantes
88/100
Tipo de issue
Error
Claridad
Bien especificado
Estado de actividad
Activo
Stack tecnológico
typescript
Área
build-system

Línea de trabajo

Comienza con src/index.tsx y compara sus exports raíz con el dist/index.d.ts publicado. Reproduce la discrepancia con los comandos npm pack y grep del issue y, después, verifica que la importación de sanitizeCatalogImageUrl desde @sistent/sistent esté representada tanto en el bundle de runtime como en las declaraciones generadas.

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

Descripción

kind/bug
Current Behavior

@sistent/[email protected] exports sanitizeCatalogImageUrl at runtime, but the symbol is missing from the published dist/index.d.ts.

Because of this, importing it from the package root fails for TypeScript consumers:

import { sanitizeCatalogImageUrl } from '@sistent/sistent';
TS2305: Module '"@sistent/sistent"' has no exported member 'sanitizeCatalogImageUrl'.

This was previously addressed in #1697. The explicit root export was added in 8567da11, but was discarded by the sync merge b7d22bbc before the PR was merged.

The leaf module and the exports through Helper.ts and src/custom/index.tsx are still present. The explicit export from src/index.tsx is not.

Expected Behavior

sanitizeCatalogImageUrl should be available from the package root in both the runtime bundle and the generated TypeScript declarations.

Screenshots/Logs

Published 0.22.6 package:

npm pack @sistent/[email protected]

tar -xzOf sistent-sistent-0.22.6.tgz package/dist/index.d.ts | grep sanitizeCatalogImageUrl
# no result

tar -xzOf sistent-sistent-0.22.6.tgz package/dist/index.js | grep sanitizeCatalogImageUrl
# symbol is present

The export is present before the sync merge and absent afterward:

git show 8567da11:src/index.tsx | grep -c sanitizeCatalogImageUrl
# 3

git show 'b7d22bbc^1:src/index.tsx' | grep -c sanitizeCatalogImageUrl
# 3

git show 'b7d22bbc^2:src/index.tsx' | grep -c sanitizeCatalogImageUrl
# 0

git show b7d22bbc:src/index.tsx | grep -c sanitizeCatalogImageUrl
# 0
Environment
  • Package: @sistent/[email protected]
  • master: 731e3b4b
  • Reproduced against the published npm package

Contributor Guides and Resources
Lenguaje dominante
TypeScript
Estrellas
137
Forks
242
Merge medio
6 d 11 h
PR fusionados (30 d)
2

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 layer5io/sistent

Todos los issues de layer5io/sistent

Issues similares

Más issues de TypeScript

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.