[V5] Error in Next 16: Module not found: Can't resolve 'nativewind/jsx-dev-runtime'

Aperta
#244 3 commenti 3 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 12 giorni

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
22/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Ferma
Stack tecnologico
nextjs, typescript

Direzione di ricerca

Start with the reproduction repo linked in the issue and the jsxImportSource setting in tsconfig.json, then check whether the nativewind package's exports map provides a jsx-dev-runtime entry under Next 16's resolver. Done means the Next 16 example builds with the className styles applied. The thread has gone quiet for about eight months and has no linked pull request, so confirm with a maintainer that the bug still reproduces before investing time.

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

Descrizione

deferred (post-5.0)

When I added "jsxImportSource": "nativewind" to the tsconfig.json file. NextJS returns an error:

Module not found: Can't resolve 'nativewind/jsx-dev-runtime'

If I remove that value from tsconfig.json, the button is displayed, but without className, so no styles.

Reproduction

https://github.com/albertcito/turborepo

Lingua principale
TypeScript
Stelle
166
Fork
45
Merge medio
17g 22h
PR unite (30g)
3

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 nativewind/react-native-css

Tutte le issue di nativewind/react-native-css

Issue simili

Altre issue su TypeScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.