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

Facing issue while implementing Offline Bundling. #485

Closed
AswathyIra opened this issue Jan 4, 2024 · 8 comments
Closed

Facing issue while implementing Offline Bundling. #485

AswathyIra opened this issue Jan 4, 2024 · 8 comments

Comments

@AswathyIra
Copy link

We are currently working on developing a Super App in React Native, drawing inspiration from your showcase app. We've encountered a specific requirement that involves local bundling of microapps within the APK/IPA itself, deviating from the remote bundling approach used in your showcase app.

Our attempts to address this requirement have led us to explore various approaches, but we've been unable to find a method to specify the path of local bundle folders instead of remote URLs. We couldn't find any documentation also related to this topic.

Could you kindly provide us with any documentation or insights related to achieving local bundling in React Native for our Super App? Your guidance on this matter would be immensely valuable to our development efforts.

@thymikee
Copy link
Member

thymikee commented Jan 4, 2024

@jbroma we should be able to document this flow of local bundling

@jbroma
Copy link
Member

jbroma commented Jan 8, 2024

Hi @AswathyIra,

Some time ago I've explored this scenario, please refer to branch local-module-federation-poc for more details (it is a little bit outdated but the changes made there are relatively small in size so you should be able to find what you need there.

As for the documentation, I'll try to do that when I'll have some spare time on my hands. Feel free to ask some more questions about that setup, so we can gather even more data on that :)

@AswathyIra
Copy link
Author

@jbroma Thank you so much for the reference. I appreciate it. I will certainly investigate this further and reach out to you with any updates.

Copy link

github-actions bot commented Feb 9, 2024

This issue has been marked as stale because it has been inactive for 30 days. Please update this issue or it will be automatically closed in 14 days.

@github-actions github-actions bot added the Stale label Feb 9, 2024
Copy link

This issue has been automatically closed because it has been inactive for more than 14 days. Please reopen if you want to add more context.

@tl-lucasestevam
Copy link

Hi @jbroma, can you provide a step-by-step about how to run this in Android? I am getting this error:

[ScriptManager] Failed to load script: [FileSystemEvalFailure] {"cache": false, "caller": undefined, "locator": {"absolute": false, "body": undefined, "fetch": true, "headers": undefined, "method": "GET", "query": "platform=android", "timeout": 30000, "url": "file:///auth.container.bundle", "verifyScriptSignature": "off"}, "scriptId": "auth"} {"originalError": [Error: Unable to load script. Make sure you're either running Metro (run 'npx react-native start') or that your bundle 'auth.container.bundle?platform=android' is packaged correctly for release.]}

@jbroma
Copy link
Member

jbroma commented May 15, 2024

@tl-lucasestevam are you using bridgeless by any chance?

@tl-lucasestevam
Copy link

tl-lucasestevam commented May 15, 2024

@tl-lucasestevam are you using bridgeless by any chance?

@jbroma I think no, I just clone the repo and change to "local-module-federation-poc" branch. But anyway I checked and bridgeless is disabled on MainAplication.java of host

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants