Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Running App Resulting in Blank (White) Screen #2693

@sizoune

Description

@sizoune

Describe the bug

I just started using Ignite a few hours ago, and made a new project using
npx ignite-cli@latest new langsat-manis

when i run the app using yarn android command, it was successful build and the app is running,
the problem appear after splash screen, the app just appear in white without error, im trying to find in github issues, it appear because useFonts, so i add the the error like this

const [areFontsLoaded, fontError] = useFonts(customFontsToLoad)
  if (fontError) {
    const { name, cause, message } = fontError
    throw new Error(`Could not load fonts. ?\n${name}: ${cause}\n${message}`)
  }

and the error said

Error: Could not load fonts. ?
Error: undefined
Module "1" is missing from the asset registry

Ignite version

9.7.0

Additional info

> [email protected] npx
> ignite doctor

System
  platform           win32                                                                
  arch               x64                                                                  
  cpu                12 cores        Intel(R) Core(TM) i7-9750HF CPU @ 2.60GHz            
  directory          langsat-manis   D:\Development\Javascript\react-native\langsat-manis 

JavaScript (and globally-installed packages)
  node               20.10.0                                   C:\Program Files\nodejs\node.EXE
  npm                10.6.0                                    C:\Program Files\nodejs\npm.CMD
    eas-cli          7.8.5
    http-server      14.1.1
    nodemon          3.0.1
    npm              10.6.0
    sass             1.69.5
  yarn               1.22.22                                   C:\Program Files\nodejs\yarn.CMD
    create-t3-app    7.33.1
    react-devtools   5.2.0
  pnpm               9.1.4                                     C:\Program Files\nodejs\pnpm.CMD
                     <no pnpm global package info available>
  bun                -                                         not installed
  expo               51.0.9                                    managed

Ignite
  ignite-cli         9.7.0        C:\Users\muham\AppData\Local\npm-cache\_npx\e31027f3785124a8\node_modules\.bin\ignite.CMD
  ignite src         build        C:\Users\muham\AppData\Local\npm-cache\_npx\e31027f3785124a8\node_modules\ignite-cli\build

Android
  java               17.0.6       C:\Program Files\Common Files\Oracle\Java\javapath\java.EXE
  android home       -            C:\Users\muham\AppData\Local\Android\Sdk

Tools
  git                git version 2.45.1.windows.1   C:\Program Files\Git\cmd\git.EXE 

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions