React: Map is not defined

Created on 15 May 2018  路  1Comment  路  Source: facebook/react

I am using react v16.3.2. The device is Galaxy Note 2 GT-N7100. I am using the native browser. The error is:

/static/js/bundle.js:45979

Uncaught ReferenceError: Map is not defined.

It's working on other browsers on the same device. I have to load the page within the application and if I am not wrong it will use the default browser.

>All comments

Adding the following in index.js resolved the issue.

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

Was this page helpful?
0 / 5 - 0 ratings