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

Add expo-updates crash when build release with Re.Pack v5 #1077

Open
npcv1999 opened this issue Mar 7, 2025 · 3 comments
Open

Add expo-updates crash when build release with Re.Pack v5 #1077

npcv1999 opened this issue Mar 7, 2025 · 3 comments
Labels
status:new New issue, not reviewed by the team yet. type:bug A bug report.

Comments

@npcv1999
Copy link

npcv1999 commented Mar 7, 2025

Describe the bug

Hi, I am using Re.Pack 5 and have integrated expo modules. When building the release, libraries like expo-constants work fine. However, for libraries like expo-updates, as far as I know, additional configuration with expo-cli is required to build successfully. But when I manage to build it, the app crashes on the Re.Pack part.

In my app/build.gradle must have this to make expo-updates working

Image

But when build relase, that log error :

  • ReferenceError: Property 'webpack_require' doesn't exist

How i can do for this issue ?
Thank you

System Info

ReferenceError: Property 'webpack_require' doesn't exist

Re.Pack Version

5.0.0

Reproduction

https://github.com/npcv1999/RepackAppExpo

Steps to reproduce

Using npm

npm start

OR using Yarn

yarn start

@npcv1999 npcv1999 added status:new New issue, not reviewed by the team yet. type:bug A bug report. labels Mar 7, 2025
@npcv1999 npcv1999 changed the title Add expo-updates crash when build release Add expo-updates crash when build release with Re.Pack v5 Mar 7, 2025
@jbroma
Copy link
Member

jbroma commented Mar 10, 2025

Hi, the app crashes because it's built with metro and not Re.Pack - I did investigate expo-updates briefly (with EAS, the most dev friendly way) and it seems like its hard-wired to use metro so there is most likely no way to integrate this right now

@npcv1999
Copy link
Author

Oh, thanks for your answer! In the future, your team still plans to support expo-updates, right? @jbroma

@jbroma
Copy link
Member

jbroma commented Mar 11, 2025

Oh, thanks for your answer! In the future, your team still plans to support expo-updates, right? @jbroma

It's more about expo-updates supporting anything other than expo-cli/metro rather than Re.Pack supporting expo-updates - not much we can do from our side tbh

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status:new New issue, not reviewed by the team yet. type:bug A bug report.
Projects
None yet
Development

No branches or pull requests

2 participants