Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix metro JSC urls. #22929

Merged
merged 2 commits into from
Jun 16, 2023
Merged

Fix metro JSC urls. #22929

merged 2 commits into from
Jun 16, 2023

Conversation

EvanBacon
Copy link
Contributor

@EvanBacon EvanBacon commented Jun 16, 2023

Why

I'm noticing a bug in 0.73.10 where the URL passed to the serializer (fourth argument, sourceUrl) is invalid:

Expected: http://localhost:8081/index.bundle?platform=ios
Found: http://localhost:8081/index.bundle/&platform=ios

This breaks query string parsing. Works in 0.73.9
Possibly related facebook/metro@bce6b27

ref: metro discord

How

Proposed solution is to use this new metro library which unbreaks the URLs.

@expo-bot expo-bot added the bot: suggestions ExpoBot has some suggestions label Jun 16, 2023
Co-authored-by: Expo Bot <34669131+expo-bot@users.noreply.github.com>
@expo-bot expo-bot added bot: passed checks ExpoBot has nothing to complain about and removed bot: suggestions ExpoBot has some suggestions labels Jun 16, 2023
@EvanBacon EvanBacon merged commit e06062f into main Jun 16, 2023
14 checks passed
@EvanBacon EvanBacon deleted the @evanbacon/metro/fix-jsc-urls branch June 16, 2023 04:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bot: passed checks ExpoBot has nothing to complain about
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants