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

Does create-react-app allways needs static files to be served #1076

Closed
Darren-Ivey opened this issue Nov 21, 2016 · 1 comment
Closed

Does create-react-app allways needs static files to be served #1076

Darren-Ivey opened this issue Nov 21, 2016 · 1 comment

Comments

@Darren-Ivey
Copy link

Darren-Ivey commented Nov 21, 2016

From what I can see, the create-react-app needs static files to be served in order to work. Is there a way around this?

Just to expand on my issue, I am trying to set up a cordova app using create-react-app. I can view the app without any issues whilst serving the files using pushstate-server, however when I build and run the app (in browser or Android device) I get a blank screen. There are no errors in the console, but the JSX has obviously not rendered. I know this is the same result as if you simply tried to open the index.html into a browser.

Reading around I can see that by default the bundled JSX file needs to be served up in order to render. Is there a way around this, so that the JSX would be displayed?

@gaearon
Copy link
Contributor

gaearon commented Dec 11, 2016

Sorry this issue slipped through the cracks.
Please see #1094 for a discussion about this.
Yes, currently it needs to be served, but we’ll likely support the Cordova use case at some point in the future.

@gaearon gaearon closed this as completed Dec 11, 2016
@lock lock bot locked and limited conversation to collaborators Jan 22, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants