我上传了a repository。
[dist/index.htm
导致IE11崩溃,如下所示。
无法获得未定义或空引用的属性'root']
// inner.jsx import { Grid } from '@material-ui/core'; import React, { useState } from 'react'; export function Inner() { var [path] = useState(''); // <- why commenting this prevents crash? return <Grid container></Grid>; }
但是在var [path] = useState('')
中注释src/inner.jsx
并运行npm run publish
后,不会发生崩溃。我不明白结果。
是虫子吗?如果是的话,我应该在哪里提出问题?
我上传了一个存储库。 dist / index.htm导致IE11崩溃,如下所示。无法获取未定义或空引用的属性“ root” // //从'@ material-ui / core'中导入inner.jsx import {Grid} ...
将useBuiltIns: 'usage'
更改为useBuiltIns: 'entry'
可解决IE11的问题。