Issue: react-ui-components cannot work with react17
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 3/5
- Tempo stimato
- 1-2 giorni
- Idoneità per principianti
- 38/100
- Tipo di issue
- Bug
- Chiarezza
- Abbastanza chiara
- Stato di attività
- Ferma
- Stack tecnologico
- nextjs, react, typescript
Direzione di ricerca
Inizia eseguendo npm run dev in Guard/examples/nextjs-react con la configurazione indicata di React 17 e Next 12. Leggi le posizioni dello stack segnalate in node_modules/@authing/react-ui-components e lib/index.min.js, quindi confronta la configurazione delle dipendenze dell’esempio con i pacchetti installati. Il lavoro è completato quando l’esempio viene eseguito senza l’errore Invalid hook call.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
-
Version:
react 17, next 12 and the react-ui-components is the latest version -
Platform:
MAC
Severity:
Critical
Description:
run the nextjs-react example, it cannot work with reach17(default setup in the exaple)
Steps to reproduce the error:
folk the github code, in the folder Guard/examples/nextjs-react, run npm run dev, it will show this error
Unhandled Runtime Error
Error: Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:
- You might have mismatching versions of React and the renderer (such as React DOM)
- You might be breaking the Rules of Hooks
- You might have more than one copy of React in the same app
See https://fb.me/react-invalid-hook-call for tips about how to debug and fix this problem.
Call Stack
resolveDispatcher
node_modules/@authing/react-ui-components/node_modules/react/cjs/react.development.js (1465:0)
useEffect
node_modules/@authing/react-ui-components/node_modules/react/cjs/react.development.js (1508:0)
fW
node_modules/@authing/react-ui-components/lib/index.min.js (2:2209173)
- Lingua principale
- TypeScript
- Stelle
- 1.4k
- Fork
- 151
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Guida per i contributori
Apri la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di Authing/Guard
-
bug
Difficoltà 3/5 1-2 giorni Idoneità per principianti 48/100
-
bug
Difficoltà 4/5 3-5 giorni Idoneità per principianti 25/100
-
文档 URL 的描述错误 Apertabug
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 45/100
-
guard.min.css 污染全局样式 Apertabug
Authing/Guard#257 · 2 commenti · 2 reazioni · 1 assegnatario ·
-
bug
Tutte le issue di Authing/Guard
Issue simili
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 70/100
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
mksglu/context-mode#1200 ·
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
jaegertracing/jaeger-ui#4506 ·
-
area:desktop area:ui bug platform:macos
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
anthropics/claude-code#96687 ·
-
good first issue
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 95/100
AOSSIE-Org/DebateAI#582 · 2 commenti ·