import "babel-polyfill";
import React from "react";
import ReactDOM from "react-dom";
import Routes from "./routes/routes";
import { Provider } from "react-redux";
import { configureStore } from "./redux/store/configureStore";
const store = configureStore()
ReactDOM.render(
<Provider store={store}>
<Routes/>
</Provider>,
document.getElementById("root")
)
package.json
{
"name": "erp",
"version": "0.1.0",
"private": true,
"homepage": "./",
"dependencies": {
"antd": "^3.10.4",
"axios": "^0.18.0",
"events": "^3.0.0",
"jquery": "^3.3.1",
"react": "^16.6.1",
"react-cookies": "^0.1.0",
"react-dom": "^16.6.1",
"react-redux": "^5.1.1",
"react-router-config": "^4.4.0-beta.6",
"react-router-dom": "^4.3.1",
"react-scripts": "2.1.1",
"react-transition-group": "^2.5.0",
"redux": "^4.0.1",
"redux-thunk": "^2.3.0"
},
"scripts": {
"start": "react-app-rewired start",
"build": "react-app-rewired build",
"test": "react-app-rewired test",
"eject": "react-scripts eject"
},
"eslintConfig": {
"extends": "react-app"
},
"browserslist": [
">0.2%",
"not dead",
"not ie <= 11",
"not op_mini all"
],
"devDependencies": {
"babel-plugin-import": "^1.11.0",
"babel-polyfill": "^6.26.0",
"react-app-rewired": "^1.6.2",
"redux-logger": "^3.0.6"
}
}
it is normal that babel-polyfill,Ie11 has been introduced at the top of the entry file, why do you still ask the question that Map is not defined under Ie10? And all pages of Ie10 and below cannot be displayed