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

Expo Web support #5532

Closed
riebel opened this issue Mar 3, 2023 · 11 comments
Closed

Expo Web support #5532

riebel opened this issue Mar 3, 2023 · 11 comments

Comments

@riebel
Copy link

riebel commented Mar 3, 2023

Problem

I know the web context of Expo is not officially supported, but since Hermes is now supported and the default engine in Expo SDK 48 also switched to Hermes, maybe it is now somehow possible?

I get it running on Expo48 Android dev client, but when i try to bundle for web, I get:

The package at "node_modules\bindings\bindings.js" attempted to import the Node standard library module "fs".
It failed because the native React runtime does not include the Node standard library.

Maybe there is a workaround or fix for this or is it just plain impossible at the moment?

Solution

No response

Alternatives

No response

How important is this improvement for you?

Dealbreaker

Feature would mainly be used with

Atlas Device Sync

@kneth
Copy link
Contributor

kneth commented Mar 6, 2023

@riebel Thank you for reporting. It is not something we have tried out. You might be able to find a work-around by tweaking your Babel configuration: goatandsheep/react-native-dotenv#78

@sync-by-unito sync-by-unito bot added the Waiting-For-Reporter Waiting for more information from the reporter before we can proceed label Mar 6, 2023
@riebel
Copy link
Author

riebel commented Mar 6, 2023

I tried to modify my babel.config.js with no success:

module.exports = function (api) {
  api.cache(true)
  return {
    presets: ['babel-preset-expo', 'module:metro-react-native-babel-preset'],
    plugins: [
      '@babel/plugin-proposal-export-namespace-from',
      'react-native-reanimated/plugin',
      require.resolve('expo-router/babel')
    ]
  }
}

@github-actions github-actions bot added Needs-Attention Reporter has responded. Review comment. and removed Waiting-For-Reporter Waiting for more information from the reporter before we can proceed labels Mar 6, 2023
@kneth
Copy link
Contributor

kneth commented Mar 9, 2023

It is not on our current roadmap to support Expo Web but in general web is an interesting platform. I am curious to learn more about your use case? Do you want to share an app between mobile and web? Are you interested in developing your mobile app as a PWA?

@sync-by-unito sync-by-unito bot added Waiting-For-Reporter Waiting for more information from the reporter before we can proceed and removed Needs-Attention Reporter has responded. Review comment. labels Mar 9, 2023
@riebel
Copy link
Author

riebel commented Mar 9, 2023

Yes, I share the whole codebase with android, iOs and web and the same app runs flawlessly on all three platforms. I plan to switch from firebase to a self-hosted solution, but I think it is impractical for my project to use different APIs for web and for mobile. It would require a lot of duplicated code and/or a weird wrapper API.

@github-actions github-actions bot added Needs-Attention Reporter has responded. Review comment. and removed Waiting-For-Reporter Waiting for more information from the reporter before we can proceed labels Mar 9, 2023
@sync-by-unito sync-by-unito bot removed the Needs-Attention Reporter has responded. Review comment. label Jun 1, 2023
@federicogomezlara
Copy link

@riebel Did you find any work around?

@riebel
Copy link
Author

riebel commented Aug 8, 2023

@federicogomezlara sadly not.

@aronkramer
Copy link

I'm having the same issue.

@farynaio
Copy link

same

@kraenhansen kraenhansen self-assigned this May 21, 2024
@Arthurmtro
Copy link

+1

@bishoyroufael
Copy link

Any updates regarding this?

@kraenhansen
Copy link
Member

@bishoyroufael I did manage make some advancements on this: #6821 but that PR is nowhere near ready to merge.

With the deprecation announcement this is left as work for the community to do and we haven't (yet) seen a huge interest in members of the community contributing large features. So ... likely not going to happen 😞 I'll close it as such and we can re-open if that change 👍

@kraenhansen kraenhansen closed this as not planned Won't fix, can't repro, duplicate, stale Sep 30, 2024
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Oct 30, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

8 participants