Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

'DetailedHTMLProps<InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>' 형식에 'css' 속성이 없습니다. #10

Open
leon-dunamu opened this issue May 3, 2021 · 3 comments

Comments

@leon-dunamu
Copy link
Collaborator

styled-components => emotion으로 옮기는 도중, emotion을 위한 태그의 css prop이 먹히지 않음 확인

@leon-dunamu
Copy link
Collaborator Author

로컬 환경에서의 테스트는 성공했지만, vercel 배포 시 여전히 에러 발생함

Property 'css' does not exist on type 'DetailedHTMLProps<InputHTMLAttributes, HTMLInputElement>'.

@leon-dunamu
Copy link
Collaborator Author

emotion-js/emotion#1249 (comment)로 해결 완료!

@leon-dunamu
Copy link
Collaborator Author

해결완료인줄 알았지만, tag의 css props로 적용할 경우 적용되지 않는 현상 발견

이유는 .babelrc설정 때문이었는데, plugins ["styled-components", { "ssr": true, "displayName": true }]를 삭제했더니 해결.

styled-components => emotion으로 이전 도중 충돌이 있던 것으로 생각됨

@leon-dunamu leon-dunamu mentioned this issue May 5, 2021
leon-dunamu added a commit that referenced this issue Sep 17, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant