React+antd project runs under ie11: the TypeError: object does not support the "startsWith" property or method

as shown in the figure below, my project is the scaffolding of create-react-app. There is no problem running under ie 9. Running under ie 11 reported the following error.
I went to Baidu, and some people said that I did not quote babel-polyfill, so npm install-- save-dev babel-polyfill,
installed this package in the entry file import "babel-polyfill". I also tried
module.exports = {

under webpack.config.dev.js.

entry: ["babel-polyfill", ". / app/js"]

};
this setting, but it is useless. The wrong position is: D:/testPro/antd-demo/node_modules/fbjs/lib/UserAgent.js:33
is obviously under node_modules, which has nothing to do with my code. Under node_modules, there is a syntax that does not support ie 11 browsers. Ask for help. How to do this?
how to make it compatible with ie 11.
clipboard.png


just add 'babel-polyfill'' to entry and 'babel-polyfill'' to presets in babel-loader.
or check to see if your query is a string type.
or you can consider lodash's startsWith


by adding a es6-shim js .


I have the same problem. How did you solve it

Menu