Skip to content

[EXPO] Node.js Server Fails to Start in Production Environment but Works in Development #91

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

Open
desmond58 opened this issue Apr 21, 2025 · 0 comments

Comments

@desmond58
Copy link

desmond58 commented Apr 21, 2025

I am encountering an issue where the Node.js server fails to start in the production environment, while it works perfectly in the development environment. Below are the details:

Observations:
The server starts and functions as expected during development.
When "nodejs.start('main.js');" is triggered, logcat will log "Running "main" with {"rootTag":31}"
Image

In production, the server does not start, and no clear error messages are logged. Logcat does not log "Running "main" with {"rootTag":31}" as well

Spec:
React Native + Expo 50
Node.js + Socket.io

Project Directory:
Image

I would appreciate any guidance or suggestions to resolve this issue. If additional information or logs are needed, please let me know.

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

No branches or pull requests

1 participant