Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

[Bug] sanitizeCatalogImageUrl is missing from the published declaration bundle

Aperta Adatta ai principianti
#1,851 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 7 giorni

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
1/5
Tempo stimato
Meno di un'ora
Idoneità per principianti
88/100
Tipo di issue
Bug
Chiarezza
Specificata chiaramente
Stato di attività
Attiva
Stack tecnologico
typescript
Ambito
build-system

Direzione di ricerca

Inizia da src/index.tsx e confronta le sue esportazioni root con il dist/index.d.ts pubblicato. Riproduci la discrepanza con i comandi npm pack e grep dell’issue, quindi verifica che l’importazione di sanitizeCatalogImageUrl da @sistent/sistent sia rappresentata sia nel bundle runtime sia nelle dichiarazioni generate.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

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
Lingua principale
TypeScript
Stelle
137
Fork
239
Merge medio
12g 21h
PR unite (30g)
1

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di layer5io/sistent

Tutte le issue di layer5io/sistent

Issue simili

Altre issue su TypeScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.