jhipster 在 Internet Explorer 11 上反应应用程序错误
jhipster react application error on Internet Explorer11
我使用 jhipster v5.3.4 构建了一个应用程序,为前端选择了 React 选项。它在 Edge 和 Chrome 上运行良好,但在 Internet Explorer 11 上呈现空白页面。
我已经阅读了安装并包含 babel-polyfill 的解决方案,但我不确定该怎么做。
我做了什么:
- npm install --save-dev babel-polyfill
- 在 index.tsx 的顶部,添加
import babelPolyfill from 'babel-polyfill';
结果是一样的,空白页和控制台错误:"Symbol is undefined"
最终让它起作用的答案是:
import React from 'react';
import ReactDOM from 'react-dom';
import 'babel-polyfill';
我使用 jhipster v5.3.4 构建了一个应用程序,为前端选择了 React 选项。它在 Edge 和 Chrome 上运行良好,但在 Internet Explorer 11 上呈现空白页面。
我已经阅读了安装并包含 babel-polyfill 的解决方案,但我不确定该怎么做。
我做了什么:
- npm install --save-dev babel-polyfill
- 在 index.tsx 的顶部,添加
import babelPolyfill from 'babel-polyfill';
结果是一样的,空白页和控制台错误:"Symbol is undefined"
最终让它起作用的答案是:
import React from 'react';
import ReactDOM from 'react-dom';
import 'babel-polyfill';