You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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?
The text was updated successfully, but these errors were encountered:
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.
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?
The text was updated successfully, but these errors were encountered: