vue 버전 확인하려고 cmd에 vue -v를 실행시켰는데 아래와 같이 나옵니다. 'vue' is not recognized as an internal or external command, operable program or batch file. 아무래도 vue 설치가 안 돼 있는거 같은데 강의 안에서도 vue 설치는 없고 확장 프로그램 설치만 있던데 혹시 vue 설치 별도로 필요한 건가요?
확인해보니 pageRequestDTO의size의 값이 page의 값과 일치하게 출력되네요. useCustomMove.js를 확인해 보니 아래와 같이 로직이 짜여져 있었습니다. const size = getNum(queryParams.get('page'), 10) get에서 size로 수정했더니 제대로 화면에 출력된 것을 확인했습니다. 감사합니다.
감사합니다. useState와 getOne 문제는 import문을 추가해서 해결됐습니다. 그런데 이번에는 todoApi.js에서 에러가 발생했습니다. [eslint] src\api\todoApi.js Line 6:23: 'axios' is not defined no-undef Line 14:23: 'axios' is not defined no-undef Search for the keywords to learn more about each error. 위 에러도 axios를 위한 import문이 필요한 건지 질문 드리고 싶습니다. 아래에 todoApi.js 내용을 추가하겠습니다. export const API_SERVER_HOST = 'http://localhost:8080' const prefix = '${API_SERVER_HOST}/api/todo' export const getOne = async (tno) => { const res = await axios.get('${prefix}/${tno}') return res.data } export const getList = async (pageParam) => { const {page,size} = pageParam const res = await axios.get('${prefix}/list', {params:{page,size}}) return res.data }