Closed duke79 closed 5 years ago
npm install --save babel-polyfill
and
import 'babel-polyfill';
Didn't work!
Didn't work!
-Not applicable-
/static/...
in index.html
.Fixed the resource not found issues.
But a new issue Uncaught ReferenceError: Set is not defined
popped up.
try npm install --save babel-polyfill
and
import 'babel-polyfill';
Didn't work!
Didn't workg!
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
// Polyfill Custom Elements v1 with global namespace pollution
import '@webcomponents/custom-elements';
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?
chrome
?It worked!
Had to update Chrome. ES6 is not supported in older webview.