通过Material-UI,最新的Next.js 9实现示例具有未样式化内容的内容

时间:2019-07-19 21:34:32

标签: material-ui next.js emotion

这是一个可行的示例:

https://nodeco-web.fillipvt.now.sh/

一会儿您会发现它的样式很好,然后白色字体从按钮中消失了

以下是上述复制案例的仓库: https://github.com/fillipvt/nodeco-web

我在做什么错?

我遵循此处所述的完全相同的示例:

https://github.com/mui-org/material-ui/tree/master/examples/nextjs

并且还遵循了指南与此处的motion.js一起实施:

https://material-ui.com/guides/interoperability/#the-styled-api

感谢您的帮助!

编辑:通过禁用Web浏览器中的缓存,您将能够看到FOUC清除器

1 个答案:

答案 0 :(得分:0)

该解决方案最终是从SCRIPT1005: Expected '(' ui5loader-dbg.js (1421,5) 添加StylesProvider助手,在@material-ui/styles中看起来像这样

_app.js

Here's the issue where it was solved.