일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 | 31 |
- commitlint
- engines locking
- leetcode
- BFS
- javascript
- eslintrc
- Vite
- Medium
- 프로그래머스
- toast-ui-editor
- medinum
- tailwindcss
- next-auth
- React Private Routes
- React
- Sanity.io
- next.js
- React Router dom v6
- 컴포넌트 최적화
- Weekly Contest
- react-dom
- React.memo
- React Public Routes
- 모던 자바스크립트 Deep Dive
- LV. 2
- sql
- 호이스팅
- 모던 자바스크립티 Deep Dive
- Biweekly Contest 79
- .env
- Today
- Total
목록전체 글 (55)
뚜벅
49. Group Anagrams Medium Given an array of strings strs, group the anagrams together. You can return the answer in any order. An Anagram is a word or phrase formed by rearranging the letters of a different word or phrase, typically using all the original letters exactly once. Example 1: Input: strs = ["eat","tea","tan","ate","nat","bat"] Output: [["bat"],["nat","tan"],["ate","eat","tea"]] Const..
216. Combination Sum III Medium Find all valid combinations of k numbers that sum up to n such that the following conditions are true: Only numbers 1 through 9 are used. Each number is used at most once. Return a list of all possible valid combinations. The list must not contain the same combination twice, and the combinations may be returned in any order. Example 1: Input: k = 3, n = 7 Output: ..
39. Combination Sum Medium Given an array of distinct integers candidates and a target integer target, return a list of all unique combinations of candidates where the chosen numbers sum to target. You may return the combinations in any order. The same number may be chosen from candidates an unlimited number of times. Two combinations are unique if the frequency of at least one of the chosen num..
Next.js + Sanity 프로젝트 진행 중 스키마 파일에서 아래 에러가 발생했습니다! Parsing Error: Cannot find module '@babel/preset-env' for Sanity 처음에는 @bebel/preset-env 파일이 설치가 안되어서 에러가 발생하는 줄 알고 설치하였지만 에러는 그대로였습니다..! 그래서 구글 검색 중 해결법을 찾아 게시물을 작성합니다. 해결법은 간단했는데요 sanity 폴더 아래 .eslintrc 파일에 한 줄만 추가해주면 됩니다. { "extends": "@sanity/eslint-config-studio", "eslint.workingDirectories": ["./web", "./studio"] // 추가 } Parsing Error: Cann..
기존 프로젝트를 생성할 때 CRA를 사용하다가 이번에 vite를 처음 사용해 봤습니다. 그리고 api key 를 관리하기 위해 env 변수를 사용하였는데 CRA와 다른점이 있어 글을 작성합니다. vite에서 env 변수를 선언하기 위해서는 .env 파일에서 VITE_를 변수 앞에 붙여 선언해줍니다. VITE_GEO_API_KEY=aaaaaaaa 그리고 사용할 때는 import.meta.env.env변수 이름 으로 사용해줍니다. import.meta.env.VITE_GEO_API_KEY 그리고 추가로 타입 스크립트와 같이 사용하는 경우에는 .env에서 정의되지 않은 타입 에러가 발생하기 때문에 src 폴더 아래에 env.d.ts 파일을 생성하여 다음과 같이 타입들을 정의해줍니다. interface Impo..
api를 호출하니 상태 코드 422 에러가 발생했습니다. 상태 코드 422란? 422 Unprocessable Entity 이 응답은 서버가 요청을 이해하고 요청 문법도 올바르지만 요청된 지시를 따를 수 없음을 나타냅니다. 422 Unprocessable Entity - HTTP | MDN 이 응답은 서버가 요청을 이해하고 요청 문법도 올바르지만 요청된 지시를 따를 수 없음을 나타냅니다. developer.mozilla.org 즉 올바르게 요청을 했지만 무언가 잘못 됐다는 것을 말하는 거 같습니다!! 그래서 api 문서와 코드를 살펴보니 파라미터 값의 문제인 것 같습니다. api 문서에서는 country_code 값을 반드시 넘겨주어야 하지만 코드에서는 useGetSongsByCountryQuery에서 ..