I know these type of question has been asked before but none of them works for me.
My objective: To build a cordova/phonegap app using react.
What I did: I created a basic cordova app. Deleted the contents of /www
folder. Created a react app using create-react-app
. Then built it using npm run build
and copied the build
folder content to /www
of cordova. I'm following this SO post. After building the cordova app, the app successfully runs on browser but it gives net::ERR_FILE_NOT_FOUND(file:///android_assets/www/)
error when I try to run it on android.
To solve the issue, I even tried to add timeout and checked for spellings of files. But the issue still persists.
Please help me to find the solution for this issue.