당근먹는하니
귀엽고 행복해
당근먹는하니
전체 방문자
오늘
어제
  • 분류 전체보기 (274)
    • 다람쥐🐿 (26)
    • C++ 공부빵야 (7)
    • 공부👻 (5)
    • 프론트엔드✏️ (228)
      • 코드캠프 (120)
      • 팀 프로젝트✨ (31)
      • 개인공부 (67)
    • 프론트엔드 - 바닐라js (7)

블로그 메뉴

  • 홈
  • 태그
  • 방명록

공지사항

인기 글

태그

  • javascript
  • 코딩 부트캠프
  • 배열
  • 팀플
  • JS
  • 배포
  • react
  • refreshtoken
  • React-hook-form
  • 알고리즘
  • 리액트
  • 자바스크립트
  • 회고
  • 팀프로젝트
  • ssg
  • typescript
  • algorithm
  • graphql
  • 코드캠프
  • 공통 컴포넌트
  • next.js
  • CSS
  • javascrpit
  • 코딩
  • emotion
  • 프로그래머스
  • 부트캠프
  • HTML
  • 프론트엔드
  • 팀 프로젝트

최근 댓글

최근 글

티스토리

250x250
반응형
hELLO · Designed By 정상우.
당근먹는하니

귀엽고 행복해

[Next.js] tailwind 설치
프론트엔드✏️/개인공부

[Next.js] tailwind 설치

2023. 1. 19. 17:30
728x90
반응형

 

 

tailwind가 components 밑에 있는 파일에는 적용이 안됐다.

해결책을 찾다가 Next.js에서의 사용방법이 자꾸 눈에 띄어서 그냥 Next.js로 하기로 했다.

 

tailwind 때문은 아니고 앞으로 프로젝트를 넥스트로 할 일이 더 많을 것 같아서,,

넥스트 설치하는 건 정말 오랜만이다...! 

 

yarn create next-app --typescript

그냥 타입스크립트로 했다. 

 

yarn dev

터미널에 치면 Next.js 화면이 뜨는 걸 확인할 수 있다.

 

yarn add -D tailwindscss postcss autoprefixer
npx tailwindcss init -p

난 ./src/...로 했다. 

Cannot find module 'tailwindcss' error 
 
npm install -D tailwindcss@latest postcss@latest autoprefixer@latest

이걸 해주니 됐다. 

 

 

https://bobbyhadz.com/blog/javascript-cannot-find-module-tailwindcss

 

Cannot find module 'tailwindcss' error [Solved] | bobbyhadz

To solve the error "Cannot find module 'tailwindcss'", install `tailwindcss`, `postcss` and `autoprefixer` as dev dependencies in your project by running `npm install -D tailwindcss postcss autoprefixer`.

bobbyhadz.com

 

 

+20230515 

tailwind css not working ,,, 적용 안 될 때

.next 폴더 지우고 다시 dev 해보기 

728x90
반응형
저작자표시 비영리 동일조건 (새창열림)

'프론트엔드✏️ > 개인공부' 카테고리의 다른 글

[react] 리액트 리렌더링  (0) 2023.03.02
[firebase] googleLogin()  (0) 2023.02.07
[youtube] useNavigate(), useLocation(), 유튜브 끝  (0) 2023.01.17
[youtube] tailwind grid auto-fill, router, axios 리팩토링  (0) 2023.01.13
[youtube]  (0) 2023.01.12
    '프론트엔드✏️/개인공부' 카테고리의 다른 글
    • [react] 리액트 리렌더링
    • [firebase] googleLogin()
    • [youtube] useNavigate(), useLocation(), 유튜브 끝
    • [youtube] tailwind grid auto-fill, router, axios 리팩토링
    당근먹는하니
    당근먹는하니

    티스토리툴바