React draggable and react rnd issue

Aperta
#739 1 commento 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
3/5
Tempo stimato
1-2 giorni
Idoneità per principianti
30/100
Tipo di issue
Bug
Chiarezza
Da chiarire
Stato di attività
Ferma
Stack tecnologico
javascript, react, typescript
Ambito
frontend

Direzione di ricerca

Start by comparing the two react-draggable typings paths shown in node_modules/react-draggable/typings/index.d.ts and node_modules/react-rnd/node_modules/react-draggable/typings/index.d.ts, using the reported react-rnd and react-draggable versions. Reproduce the TypeScript compilation error and determine whether the dependency tree can compile without the duplicate DraggableEvent declaration.

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

Descrizione

I am using
"react-rnd": "^10.4.1" and
"react-draggable": "^4.4.5"

But having

node_modules/react-draggable/typings/index.d.ts:22:15 - error TS2300: Duplicate identifier 'DraggableEvent'.

22   export type DraggableEvent = React.MouseEvent<HTMLElement | SVGElement>
                 ~~~~~~~~~~~~~~

  node_modules/react-rnd/node_modules/react-draggable/typings/index.d.ts:22:15
    22   export type DraggableEvent = React.MouseEvent<HTMLElement | SVGElement>
                     ~~~~~~~~~~~~~~
    'DraggableEvent' was also declared here.

image (2)

Lingua principale
JavaScript
Stelle
9.3k
Fork
1k
Merge medio
3g 8h
PR unite (30g)
4

Guida per i contributori

Nessuna guida per i contributori indicizzata per questo repository

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 react-grid-layout/react-draggable

Tutte le issue di react-grid-layout/react-draggable

Issue simili

Altre issue su JavaScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.