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

Typescript compilation errors and linting warning in Etch-A-Sketch example

Aperta
#513 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
2/5
Tempo stimato
1-3 ore
Idoneità per principianti
48/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Ferma
Stack tecnologico
eslint, typescript
Ambito
frontend, tooling

Direzione di ricerca

Start with the Etch-A-Sketch SolidJS example and reproduce its TypeScript compilation and ESLint output. Find the code producing the style type error, the nullable render argument, and the non-self-closing empty div; done means the example compiles and the listed lint warning is gone.

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

Descrizione

I've encountered some issues with the Typescript compilation and a linting warning in the Etch-A-Sketch SolidJS example code. Here are the details:

  1. Typescript error: The type definition for the style attribute seems incorrect. The error message is:

    • Type '{ display: string; "grid-template-rows": string; "grid-template-columns": string; }' is not assignable to type 'string | CSSProperties | undefined'.
  2. Typescript error: The render function is receiving a null type argument which is not compatible with its expected parameter type. The error message is:

    • Argument of type 'HTMLElement | null' is not assignable to parameter of type 'MountableElement'.
  3. ESLint warning: The code has an empty div component which is not self-closing, raising a lint warning:

    • Empty components are self-closing.
    • This is a minor issue but could be improved for better code quality.
Lingua principale
TypeScript
Stelle
167
Fork
179
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

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 solidjs/solid-site

Tutte le issue di solidjs/solid-site

Issue simili

Altre issue su TypeScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.