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

iOS build failed in release mode #866

Open
ra1nj opened this issue Jan 13, 2025 · 1 comment
Open

iOS build failed in release mode #866

ra1nj opened this issue Jan 13, 2025 · 1 comment
Assignees
Labels
status:confirmed The issue has been reviewed and all necessary information is provided. type:bug A bug report.

Comments

@ra1nj
Copy link
Contributor

ra1nj commented Jan 13, 2025

Describe the bug

After upgraded to repack5.0, the debug mode is fine, but once i run the app with release mode, the build is failing:

UnableToResolveError: Unable to resolve module app1/App from /Users/xxx/Repack/RepackHost/App.tsx: app1/App could not be found within the project or in these directories:

System Info

.

Re.Pack Version

5.0.rc.2

Reproduction

https://github.com/ra1nj/RepackHost/tree/repack_5.0

Steps to reproduce

Clone reproduce repo and install deps then run in release mode

@ra1nj ra1nj added status:new New issue, not reviewed by the team yet. type:bug A bug report. labels Jan 13, 2025
@jbroma jbroma added status:investigating The issue needs more research and information. and removed status:new New issue, not reviewed by the team yet. labels Jan 13, 2025
@jbroma jbroma self-assigned this Jan 13, 2025
@jbroma jbroma added status:confirmed The issue has been reviewed and all necessary information is provided. and removed status:investigating The issue needs more research and information. labels Jan 13, 2025
@jbroma
Copy link
Member

jbroma commented Jan 14, 2025

I've managed to confirm this and this needs to be fixed in 2 places:

  • platform setup (since RN 76 changed some CLI commands used when bundling for releasing)
  • RepackTargetPlugin needs some reworking to always include ScriptManager no matter what

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status:confirmed The issue has been reviewed and all necessary information is provided. type:bug A bug report.
Projects
None yet
Development

No branches or pull requests

2 participants