材质用户界面示例,ReferenceError:未定义元素

时间:2020-05-06 11:17:31

标签: material-ui

我中断了我的下一个js项目之一,尝试将ssr和下一个js示例从材料ui github存储库部署到codesandbox,这两个示例都存在相同的错误。

降级@ material-ui / core版本4.9.10似乎可以修复示例中的错误。但是不在我的项目中,线索从哪里开始?

Link to Material Ui examples

[ error ] ReferenceError: Element is not defined
    at Object.<anonymous> (/tmp/nextjs/node_modules/@material-ui/core/node_modules/react-transition-group/cjs/Transition.js:452:44)
    at Module._compile (internal/modules/cjs/loader.js:1158:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:1178:10)
    at Module.load (internal/modules/cjs/loader.js:1002:32)
    at Function.Module._load (internal/modules/cjs/loader.js:901:14)
    at Module.require (internal/modules/cjs/loader.js:1044:19)
    at require (internal/modules/cjs/helpers.js:77:18)
    at Object.<anonymous> (/tmp/nextjs/node_modules/@material-ui/core/node_modules/react-transition-group/cjs/CSSTransition.js:14:42)
    at Module._compile (internal/modules/cjs/loader.js:1158:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:1178:10)
    at Module.load (internal/modules/cjs/loader.js:1002:32)
    at Function.Module._load (internal/modules/cjs/loader.js:901:14)
    at Module.require (internal/modules/cjs/loader.js:1044:19)
    at require (internal/modules/cjs/helpers.js:77:18)
    at Object.<anonymous> (/tmp/nextjs/node_modules/@material-ui/core/node_modules/react-transition-group/cjs/index.js:6:45)
    at Module._compile (internal/modules/cjs/loader.js:1158:30)

更新: 几分钟前react-transition-group发布了4.4.1版。解决此问题。

0 个答案:

没有答案