react
-
You are running `create-react-app` 4.0.3, which 에러 해결Front-end 2023. 1. 15. 22:24
npx로 react typescript를 설치하려고 터미널에 명령어를 입력했다. npx create-react-app my-app --template typescript 그런데 설치가 안되고 아래와 같은 에러가 발생했다. You are running `create-react-app` 4.0.3, which is behind the latest release (5.0.1). We no longer support global installation of Create React App. Please remove any global installs with one of the following commands: - npm uninstall -g create-react-app - yarn global remove..
-
아주 쉽게 React + Typescript + TailwindCSS 세팅하기Front-end 2022. 12. 8. 12:22
목적: React + Typescript를 설치하고 TailwindCSS 세팅하기 React + Typescript + TailwindCSS 세팅을 쉽게 하기 위해서 순서대로 진행하면 됩니다. React app with Typescript 설치하기 npx create-react-app 앱이름 --template typescript TailwindCSS 설치하기 npm install -D tailwindcss postcss autoprefixer TailwindCSS config 파일 만들어주기 npx tailwindcss init -p 생성된 tailwind.config.js의 content에 아래 내용 추가하기 content: ['./src/**/*.{js,jsx,ts,tsx}'], src/index...