问题描述:
提示:我们在运行Next项目时候出现全局样式不可导入或者导入失败
例如:Global CSS cannot be imported from files other than your Custom <App>. Due to the Global nature of stylesheets, and to avoid conflicts, Please move all first-party global CSS imports to pages/_app.js. Or convert the import to Component-Level CSS (CSS Modules).
解决方案:
提示:降低版本:
例如:。
把package.json里找到next 把他的版本设置为11.1.0再重新npm一下即可解决~~~~
===================解决的小伙伴动动手指点点 关注~~~谢谢============