expo / expo/eas-cli

does eas no longer work with bare rn projects?

Open
#3,889 0 comments 0 reactions 0 assignees View on GitHub
needs review
Dominant language
TypeScript
Stars
1.4k
Forks
236
Avg merge
3d 1h
Merged PRs (30d)
91

Description

### Build/Submit details page URL

https://expo.dev/accounts/celebritynews/projects/promiflash/builds/3a7ea93a-c25e-4749-b9e8-0f01ddac0135

### Summary

```
Serializer did not return expected format. The project copy of `expo/metro-config` may be out of date. Error: Unexpected token 'v', "var __BUND"... is not valid JSON
Error: Serializer did not return expected format. The project copy of `expo/metro-config` may be out of date. Error: Unexpected token 'v', "var __BUND"... is not valid JSON
Error: Serializer did not return expected format. The project copy of `expo/metro-config` may be out of date. Error: Unexpected token 'v', "var __BUND"... is not valid JSON
at MetroBundlerDevServer._bundleDirectAsync (/Users/expo/workingdir/build/node_modules/@expo/cli/build/src/start/server/metro/MetroBundlerDevServer.js:1658:27)
at process.processTicksAndRejections (node:internal/process/task_queues:104:5)
at async MetroBundlerDevServer.metroLoadModuleContents (/Users/expo/workingdir/build/node_modules/@expo/cli/build/src/start/server/metro/MetroBundlerDevServer.js:654:25)
at async MetroBundlerDevServer.legacySinglePageExportBundleAsync (/Users/expo/workingdir/build/node_modules/@expo/cli/build/src/start/server/metro/MetroBundlerDevServer.js:841:24)
at async exportEmbedBundleAndAssetsAsync (/Users/expo/workingdir/build/node_modules/@expo/cli/build/src/export/embed/exportEmbedAsync.js:299:25)
at async exportEmbedInternalAsync (/Users/expo/workingdir/build/node_modules/@expo/cli/build/src/export/embed/exportEmbedAsync.js:251:39)
at async exportEmbedAsync (/Users/expo/workingdir/build/node_modules/@expo/cli/build/src/export/embed/exportEmbedAsync.js:235:5)

```

### Managed or bare?

bare

### Environment

in ci

### Error output

_No response_

### Reproducible demo or steps to reproduce from a blank project

dont know yet

Contributor guide

Open the contributing guide

Research direction

Start with the EAS build details URL and the Metro stack trace, especially MetroBundlerDevServer._bundleDirectAsync and the export/embed entry points shown in the error. Reproduce the failure in a bare React Native project running in CI; the issue is done when the cause of the serializer error is identified and bare projects can complete the build/submit flow.

Written by the indexing model from the issue text.

Assessment

Tech stack
react-native, typescript
Domain
build-system, cli, mobile
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Quiet
Clarity
Needs clarification
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.