Notice
Recent Posts
Recent Comments
Link
| 일 | 월 | 화 | 수 | 목 | 금 | 토 |
|---|---|---|---|---|---|---|
| 1 | 2 | 3 | ||||
| 4 | 5 | 6 | 7 | 8 | 9 | 10 |
| 11 | 12 | 13 | 14 | 15 | 16 | 17 |
| 18 | 19 | 20 | 21 | 22 | 23 | 24 |
| 25 | 26 | 27 | 28 | 29 | 30 | 31 |
Tags
- git 같은계정 다른 컴퓨터
- react next
- flex
- vue 지역 컴포넌트
- intersection opserver
- SCSS use
- SCSS extend
- 리스트 렌더링
- 프로그래머스 데브코스 프론트엔드
- Spacer
- postcss
- SCSS forward
- 프로그래머스 데브코스
- vue mixin
- 폼 입력 바인딩
- vue 이벤트 수신
- 프로그래머스 K_Digital Training
- netlify redirect
- 다른컴퓨터에서 git사용
- 쌓임맥락
- Vue
- 고양이 사진 검색기
- vuex map
- KDT 프로그래머스
- 이벤트 수식어
- nextjs사용법
- 프로그래머스 프론트엔드 데브코스
- KDT 프로그래머스 데브코스 프론트엔드
- 리액트
- SCSS import
Archives
- Today
- Total
혼자 적어보는 노트
[emotion] Component selectors can only be used in conjunction with babel-plugin-emotion 본문
Error
[emotion] Component selectors can only be used in conjunction with babel-plugin-emotion
jinist 2023. 1. 30. 23:58
nextjs에서 component selecteor사용 시 발생하는 에러
Error: Component selectors can only be used in conjunction with @emotion/babel-plugin, the swc Emotion plugin, or another Emotion-aware compiler transform.
const Parent = styled.div`
${Children} {
font-size: 20px;
}
`;
✅ 해결
next.config.js
compiler: {
emotion: true,
},
'Error' 카테고리의 다른 글
| [Error/Storybook] ModuleNotFoundError: Module not found: Error (0) | 2022.11.23 |
|---|---|
| The following untracked working tree files would be overwritten by checkout (0) | 2022.11.06 |
| [Webpack] webpack-dev-server script 2번 실행 (0) | 2022.09.01 |
| Component definition is missing display name (0) | 2022.07.29 |
| 모바일 이미지 업로드 시 이미지 회전 현상 (0) | 2022.07.12 |
Comments