AnimatePresence Giving Error

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

Nessuno ha ancora preso questa issue.

Valutazione

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

Direzione di ricerca

The report names React 17, TypeScript, and framer-motion 4.1.17 but mentions no restyle file or test. Start by reproducing the AnimatePresence import and type error with those versions, then determine whether the problem belongs to this repository; done means a confirmed repository-scoped fix or clear evidence that it is unrelated.

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

Descrizione

needs-reproduction

Hi ,
I am Using React :"^17.0.2", and "Framer-motion": "^4.1.17" but after importing "AnimatePresence" from "framer-motion" it shows error like this
Type '{ children: false | Element; key: string; initial: false; exitBeforeEnter: true; onExitComplete: () => null; }' is not assignable to type 'IntrinsicAttributes & AnimatePresenceProps'.
Property 'children' does not exist on type 'IntrinsicAttributes & AnimatePresenceProps'.ts(2322)

Lingua principale
TypeScript
Stelle
3.4k
Fork
154
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 Shopify/restyle

Tutte le issue di Shopify/restyle

Issue simili

Altre issue su TypeScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.