Skip to content

Latest commit

 

History

2 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

expo-svg-favicon-repro

Minimal reproducible example for an Expo CLI bug: setting web.favicon to an SVG file crashes expo export -p web entirely.

Reproduce

npm install
npx expo export -p web

Expected: export completes successfully; dist/index.html contains a <link rel="icon" type="image/svg+xml" href="/favicon.svg"> and dist/favicon.svg is served.

Actual: export fails with Error: Invalid mimeType for image with source: ./assets/favicon.svg. dist/ is left empty — no index.html, no bundle, no favicon.

What's in this repo

Almost entirely npx create-expo-app@latest --template blank. The only differences from a fresh scaffold:

  • assets/favicon.svg — a minimal SVG favicon with a prefers-color-scheme media query
  • app.jsonexpo.web.favicon set to ./assets/favicon.svg (was ./assets/favicon.png)
  • app.jsonexpo.web.output explicitly set to "single" (SPA)
  • package.json — added react-dom and react-native-web (required by expo export -p web)

Nothing else. App.js, index.js, and the rest of the scaffolding are untouched.

Full error trace and analysis in the linked GitHub issue.

About

Minimal repro for expo/expo: 'expo export -p web' crashes when 'web.favicon' is an SVG

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages