인프런 영문 브랜드 로고
인프런 영문 브랜드 로고

Inflearn Community Q&A

heimish0917's profile image
heimish0917

asked

A real introductory all-in-one development boot camp for non-majors

Applying Antd

Can't resolve 'antd/dist/antd.css'

Written on

·

3.8K

0

antd 설치 후에 App.js에 import 'antd/dist/antd.css'를 적어주면 아래와 같이 나타나요..

import 'antd/dist/antd.css'

import 'antd/dist/antd.min.css'

2개 전부 시도해봤는데 똑같이 사진속 화면이 나타나요

react 버전은 18.2.0이고 antd는 5.0.7입니다..!

머신러닝 배워볼래요? javascriptexpressHTML/CSStensorflowreactreact-nativenodejs

Answer 1

1

grab님의 프로필 이미지
grab
Instructor

안녕하세요! 이번에 antd가 5버전으로 올라가면서 css를 import하지 않아도 된 것 같습니다!

4버전대로 다운그레이드 하셔서 사용하시거나, 아니면 5버전을 사용하고 import하셔도 될 것 같아요

4버전대 다운그레이드는 npm install antd@^4.24.0 를 사용하시면 됩니다!

heimish0917님의 프로필 이미지
heimish0917
Questioner

감사합니다!!

heimish0917's profile image
heimish0917

asked

Ask a question