升级到webpack 4和最新的react版本后。 当我在IE上打开React js开发版本时,它显示空白页,并在控制台中显示以下错误。
SCRIPT1002: Syntax error
File: 0-9c5f892beeb9f5dfc76b.chunk.js, Line: 2891, Column: 34
和上面提到的以下代码行:
"use strict";
/* WEBPACK VAR INJECTION */(function(module) {
const colorConvert = __webpack_require__(/*! color-convert */ "./node_modules/color-convert/index.js");
const wrapAnsi16 = (fn, offset) => function () {
const code = fn.apply(colorConvert, arguments);
return `\u001B[${code + offset}m`;
};
我已经尝试过以下解决方案,但对我来说没什么用:
https://reactjs.org/docs/javascript-environment-requirements.html