Minimal reproducible example for an Expo CLI bug: setting web.favicon to an SVG file crashes expo export -p web entirely.
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.
Almost entirely npx create-expo-app@latest --template blank. The only differences from a fresh scaffold:
assets/favicon.svg— a minimal SVG favicon with aprefers-color-schememedia queryapp.json—expo.web.faviconset to./assets/favicon.svg(was./assets/favicon.png)app.json—expo.web.outputexplicitly set to"single"(SPA)package.json— addedreact-domandreact-native-web(required byexpo 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.