本地React开发版本在IE中显示空白页

问题描述 投票:0回答:0

升级到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

为什么IE 11显示空白页面渲染应用程序

reactjs create-react-app polyfills babel-polyfill
© www.soinside.com 2019 - 2024. All rights reserved.