我正在将一个应用程序从 React 移植到 Next,但我的 css 一直出现错误:“ul”不是纯的(纯选择器必须至少包含一个本地类或 id)。
我正在使用 css 模块,但不确定将所有内容保留在 css 模块中的解决方法。
例如:
索引.js
<div className={styles.container}>
<ul>
<li>Person One</li>
</ul>
</div>
Run Code Online (Sandbox Code Playgroud)
index.module.css
.container{
background-color: pink;
}
ul{
list-style-type: none; //this throws an error
}
Run Code Online (Sandbox Code Playgroud)