bamlab / bamlab/react-native-screen-sizer
Can't install in an expo snack: Invalid module ../assets/images/LeftArrow.png
- Lingua principale
- TypeScript
- Stelle
- 22
- Fork
- 2
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Descrizione
Reproduction: https://snack.expo.dev/@matthieugc/blissful-blue-marshmallows
```
Failed to resolve dependency '@bam.tech/react-native-screen-sizer@0.3.0' (Invalid module ../assets/images/LeftArrow.png - Module not found: Error: Can't resolve '../assets/images/LeftArrow.png' in '/tmp/snackager/snackager/buildStatus/1/@bam.tech~react-native-screen-sizer@0.3.0-ios,android,web/package/lib/module')
```
It seems like snack uses the "module" field in package.json (pointing to `./lib/module`) as an entrypoint (not the "react-native" field pointing to (`./src`), and since there's one more folder level, the assets path is invalid (should be "../../" instead of "../")
Guida per i contributori
Apri la guida per i contributori
Direzione di ricerca
Inspect package.json and the published lib/module entrypoint, then compare the asset reference to the source path under src. Reproduce the install in the linked Expo Snack and verify that LeftArrow.png resolves successfully when the package is installed.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Valutazione
- Stack tecnologico
- react-native, typescript
- Ambito
- mobile
- Tipo di issue
- Bug
- Difficoltà
- 2/5
- Tempo stimato
- 1-3 ore
- Stato di attività
- Ferma
- Chiarezza
- Specificata chiaramente
- Idoneità per principianti
- 50/100