-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Open
Labels
Description

Description
When creating or running an Expo Router project inside Bolt (stackblitz/bolt.new), the build consistently fails on expo-router/entry.bundle with a MIME type and 500 error.
Error shown in the console:
Refused to execute script from ‘…/expo-router/entry.bundle?platform=web&…’
because its MIME type (‘application/json’) is not executable,
and strict MIME type checking is enabled.
500 (Internal Server Error)
This makes Expo 53/54 projects with expo-router
unusable in Bolt.
Steps to Reproduce
- Create a new Bolt project with Expo + Expo Router (latest Expo SDK 53 or 54).
- Run the dev server.
- Open the web preview.
- Observe the error in console.
Expected Behavior
Expo Router entry bundle should load properly in the browser, with no MIME type mismatch.
Actual Behavior
Preview fails with 500 + MIME error.
Mobile preview also fails to load.
Environment
- Bolt (stackblitz/bolt.new)
- Expo SDK: 53 and 54
- Expo Router: 2.x / 3.x
- React Native: latest
- Browser: Chrome (latest, macOS)
Additional Info
- Using the same project locally with Expo CLI (
npx expo start
) works fine. - Only fails in Bolt’s preview container.
- Screenshots attached.