这是一个可行的示例:
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清除器
答案 0 :(得分:0)
该解决方案最终是从SCRIPT1005: Expected '('
ui5loader-dbg.js (1421,5)
添加StylesProvider
助手,在@material-ui/styles
中看起来像这样
_app.js