I use Styled Components with Emotion and issue a "Unused Constant" alert, even though I actually use the constants defined above when I use them right below.
This is not a warning from ESLint, but a warning issued directly by JetBrains IDE. The Styled Components plug-in is already in use, and if disabled, only the color of the CSS part will be lost. If you use files separately, it is recognized as using a constant. also I've tried to erase the cache and restart it several times.
I want to solve this problem.
"use client"
import styled from "@emotion/styled"
const Container = styled.div`
display: flex;
justify-content: center;
align-items: center;
height: 100dvh;
width: 100%;
`
export default function Home() {
return (
<Container>
<h1>Hello World</h1>
</Container>
)
}
What IDE looks like:

If you separate the file:
