Recent Posts
Recent Comments
Archives
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
Tags
- 스파르타코딩클럽
- 자주 까먹는
- 코딩테스트
- 소셜 로그인
- deep dive
- 코드카타
- 프로젝트 셋팅
- js
- 셋팅
- vercel
- domain
- React
- TailwindCSS
- git
- 최적화
- error
- vscode
- CORS
- Next
- 프로그래머스
- 모던자바스크립트
- 내일배움캠프
- 초기셋팅
- 티스토리챌린지
- array정적메서드
- useRouter
- nextjs
- 모던 자바스크립트
- 코테
- 오블완
- Today
- Total
도록
[vite] tailwindcss v4.1 설치 오류 | Type 'Plugin<any>[]' is not assignable to type 'PluginOption' 본문
Today I Learned/in dev
[vite] tailwindcss v4.1 설치 오류 | Type 'Plugin<any>[]' is not assignable to type 'PluginOption'
떼굴펜 2025. 4. 16. 10:57문제 상황
테스트 페이지가 필요해서 셋팅하던 중, 테일윈드 공식 문서 대로 제일 최신 버전을 설치하니
vite.config.ts 파일에서 아래와 같은 오류가 발생했다.
Type 'Plugin<any>[]' is not assignable to type 'PluginOption'
해결책
: node_modules 폴더와 lock 파일(ex. pnpm-lock.yaml, package.lock.json, yarn.lock)을 둘다 삭제하고 다시 install 받으면 해결된다.
rm -rf node_modules pnpm-lock.yaml
pnpm install
출처: https://github.com/tailwindlabs/tailwindcss/discussions/17541
'Today I Learned > in dev' 카테고리의 다른 글
[css] content-visibility : 사용자에게 노출되는 화면부터 그리기 (0) | 2025.01.23 |
---|---|
SockJs 적용하기 (React/typescript) (0) | 2024.12.23 |
매번 기억이 안나 검색하는 git tag command (0) | 2024.12.20 |
tailwind css가 dev, prod에 올리면 적용되지 않아요 (0) | 2024.12.11 |
[CORS] fetch는 OK인데, axios에서만 CORS가 나요 (0) | 2024.11.26 |