duke79 / boxofish

Movie reviews & ratings
https://play.google.com/store/apps/details?id=com.boxofish
Other
1 stars 0 forks source link

cordova android - white screen #10

Closed duke79 closed 5 years ago

duke79 commented 5 years ago

Had to update Chrome. ES6 is not supported in older webview.

duke79 commented 5 years ago

try npm install --save babel-polyfill and import 'babel-polyfill';

Didn't work!

duke79 commented 5 years ago

try to add 'allow-navigation'

Didn't work!

duke79 commented 5 years ago

If you are using Router in your project change that to HashRouter.

duke79 commented 5 years ago

Try installing earlier version of Android.

duke79 commented 5 years ago

Re-install ionic

-Not applicable-

duke79 commented 5 years ago

Remove the leading slash from /static/... in index.html.

Fixed the resource not found issues. But a new issue Uncaught ReferenceError: Set is not defined popped up.

duke79 commented 5 years ago

try npm install --save babel-polyfill and import 'babel-polyfill';

duke79 commented 5 years ago

Try Android 5

Didn't work!

duke79 commented 5 years ago

Try latest node version

Didn't workg!

duke79 commented 5 years ago

Try importing map & set before the first import of react

import 'core-js/es6/map';
import 'core-js/es6/set';

Worked after adding those lines before importing react. But now a new error:

Uncaught TypeError: undefined is not a function 

Try importing custom-elements

// Polyfill Custom Elements v1 with global namespace pollution
import '@webcomponents/custom-elements';
duke79 commented 5 years ago

What can be done to resolve ES6 related issue? Is the issue with node or cordova or react or browser or webpack or...? Can we go back to ES5 to fix it?

duke79 commented 5 years ago

Tinker with polyfill?

duke79 commented 5 years ago

Update chrome?

It worked!