Why can my react not be packaged and run on IE, and then report that "Unhandled promise rejectionTypeError: cannot get the value of the attribute "call": the object is null or undefined". No matter what mode I switch, I report this error. Ask God to save me!
this is my .babelrc
`
{
"presets": ["react", "env","es2015","stage-0"],
"env": {
"development": {
"plugins": [["react-transform", {
"transforms": [{
"transform": "react-transform-hmr",
"imports": ["react"],
"locals": ["module"]
}]
}
],
"syntax-dynamic-import",
"transform-runtime",
"transform-remove-console"
],
},
"production": {
"syntax-dynamic-import",
"transform-runtime",
"transform-remove-console"
]
}
}
}
`
this is part of my webpak.config
`
{
test: /\.css$/, //cssjs
use: [{
loader: "style-loader",
options: {
singleton: false
}
// loader: "style-loader!css-loader"
}, {
loader: "css-loader",
options: { //
Minimize: true, //
modules: true, // css modules
localIdentName: "[name]__[local]--[hash:base64:5]" // css
}
}],
exclude: /src/
}, {
test: /\.css$/,
exclude: /(node_modules)/,
loader: "style-loader!css-loader?modules&importLoaders=1&localIdentName=[name]_[local]_[hash:base64:5]"
}`